Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Fixed getSlotWithStack
Browse files Browse the repository at this point in the history
  • Loading branch information
Dqu1J committed Jun 23, 2021
1 parent 1277f03 commit b3e8f42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void onPlayerAction(PlayerActionC2SPacket packet, CallbackInfo ci) {
This action only gets triggered when dropping from the main hand
*/
ItemStack stack = player.getStackInHand(Hand.MAIN_HAND);
Packet packet1 = new ScreenHandlerSlotUpdateS2CPacket(-2, player.inventory.getSlotWithStack(stack), stack);
Packet packet1 = new ScreenHandlerSlotUpdateS2CPacket(-2, player.inventory.method_7371(stack), stack);
networkHandler.sendPacket(packet1);
} else {
/*
Expand Down

0 comments on commit b3e8f42

Please sign in to comment.