Fix rare netid desync when crafting (#4997)

This commit is contained in:
AJ Ferguson 2024-08-27 05:37:01 -04:00 committed by GitHub
parent 3be9b8a183
commit 46b2c03215
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,7 +123,7 @@ public class PlayerInventoryTranslator extends InventoryTranslator {
if (session.getGameMode() == GameMode.CREATIVE) {
slotPacket.setItem(UNUSUABLE_CRAFTING_SPACE_BLOCK.apply(session.getUpstream().getProtocolVersion()));
} else {
slotPacket.setItem(ItemTranslator.translateToBedrock(session, inventory.getItem(i).getItemStack()));
slotPacket.setItem(inventory.getItem(i).getItemData(session));
}
session.sendUpstreamPacket(slotPacket);