1.21.4: Fix inventory not being updated with record hotbar

This commit is contained in:
Moulberry committed 2025-02-22 01:22:14 +08:00
1 parent 95e33277f7
commit 9376f0b423
1 file changed
+1 -1
@@ -470,7 +470,7 @@ public class ReplayGamePacketHandler implements ClientGamePacketListener {
return;
}
if (clientboundContainerSetSlotPacket.getContainerId() == -2) {
if (clientboundContainerSetSlotPacket.getContainerId() == 0) {
int slot = clientboundContainerSetSlotPacket.getSlot();
ItemStack itemStack = clientboundContainerSetSlotPacket.getItem();
player.getInventory().setItem(slot, itemStack);