forked from GeyserMC/Geyser
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:
parent
b99568dc28
commit
276a8d6485
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue