3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-16 04:50:07 +01:00

Fix rare netid desync when crafting (#4997)

Dieser Commit ist enthalten in:
AJ Ferguson 2024-08-27 05:37:01 -04:00 committet von GitHub
Ursprung 3be9b8a183
Commit 46b2c03215
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

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