diff --git a/src/main/java/com/dqu/simplerauth/mixin/ServerPlayNetworkHandlerMixin.java b/src/main/java/com/dqu/simplerauth/mixin/ServerPlayNetworkHandlerMixin.java index 1fab475..ec6d60d 100644 --- a/src/main/java/com/dqu/simplerauth/mixin/ServerPlayNetworkHandlerMixin.java +++ b/src/main/java/com/dqu/simplerauth/mixin/ServerPlayNetworkHandlerMixin.java @@ -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 { /*