Right click Curios item does not handle client side.
SihenZhang opened this issue ยท 0 comments
Versions (Be specific, do not write "latest"):
- Curios: 1.16.5-4.0.5.1
- Forge/Fabric: forge-1.16.5-36.1.24
Observed Behavior:
When right click a Curios item, Curios will not handle the client logic because only on the server side, the event will be canceled.
So if a Curios item overrides the
use
(in MCP is onItemRightClick
) method, it causes the method to be called at the client.For example, a helmet, which is also a Curios item, will be equipped to both the Curios slot and the Armor slot when right click, but the Armor slot one is fake.
In survival mode, it seems to be equipped to the Armor slot.
But it is equipped to the Curios slot, the Armor slot one is fake.
Expected Behavior:
On the client side, you can also cancel the RightClickItem
event. The Cancellation Result should be ActionResultType.sidedSuccess(player.world.isClientSide())
(in MCP is ActionResultType.func_233537_a_(player.world.isRemote())
)
Steps to Reproduce:
- I have made a test mod that uses MojMap so that you can easily find the problem. Here is the main class. https://gist.github.com/SihenZhang/bb6ebaee1bbea390ad600bbe1a158021
- Identifier
examplemod:test_item
ashead
. - Just start the game and try to right click
examplemod:test_item
in survival mode.