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:
Ursprung
3be9b8a183
Commit
46b2c03215
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren