Fabric API

Fabric API

106M Downloads

ClientPickBlockApplyCallback.EVENT does not affect the pick block outcome.

FriederHannenheim opened this issue ยท 1 comments

commented

Steps to reproduce:

  • Clone the 1.17 Example project
  • Paste the following code in onInitialize
        ClientPickBlockApplyCallback.EVENT.register((player,result,stack)->{
            return player.getInventory().getStack(9);
        });
  • Put an Item in to the top left slot of the inventory
  • Middle-Mouse-Click something

Expected Result:

The item in the top left slot gets moved into your selected hotbar slot

Actual Result:

Nothing Happens

commented

Fixed by #1498