Skip to content

Commit

Permalink
1.21.4: Fix inventory not being updated with record hotbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Moulberry committed Feb 21, 2025
1 parent 95e3327 commit 9376f0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public void handleContainerSetSlot(ClientboundContainerSetSlotPacket clientbound
return;
}

if (clientboundContainerSetSlotPacket.getContainerId() == -2) {
if (clientboundContainerSetSlotPacket.getContainerId() == 0) {
int slot = clientboundContainerSetSlotPacket.getSlot();
ItemStack itemStack = clientboundContainerSetSlotPacket.getItem();
player.getInventory().setItem(slot, itemStack);
Expand Down

0 comments on commit 9376f0b

Please sign in to comment.