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.
This commit is contained in:
AJ Ferguson 2020-02-13 00:14:17 -09:00
parent b99568dc28
commit 276a8d6485

View file

@ -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);