3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-03 08:21:06 +02:00

Fix hotbar slot changing when the player's hand is updated

The default value is 0.
-1 seems to leave the selected hotbar slot unchanged.
Dieser Commit ist enthalten in:
AJ Ferguson 2020-02-13 00:14:17 -09:00
Ursprung b99568dc28
Commit 276a8d6485

Datei anzeigen

@ -83,6 +83,7 @@ public class LivingEntity extends Entity {
MobEquipmentPacket mobEquipmentPacket = new MobEquipmentPacket();
mobEquipmentPacket.setRuntimeEntityId(geyserId);
mobEquipmentPacket.setItem(hand);
mobEquipmentPacket.setHotbarSlot(-1);
session.getUpstream().sendPacket(armorEquipmentPacket);
session.getUpstream().sendPacket(mobEquipmentPacket);