mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-04 15:31:36 +00: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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user