mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-17 05:21:22 +00:00
Fixed sending malformed items, that caused the client to have visual bugs
This commit is contained in:
parent
c9ef10b223
commit
44f96dde73
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ module.exports.player=function(player)
|
|||
player._client.on("held_item_slot", ({slotId} = {}) => {
|
||||
player.heldItemSlot = slotId;
|
||||
|
||||
player.heldItem = player.inventory.itemsRange(36 + player.heldItemSlot, 36 + player.heldItemSlot + 1)
|
||||
player.heldItem = player.inventory.slots[36 + player.heldItemSlot]
|
||||
player._writeOthersNearby("entity_equipment",{
|
||||
entityId: player.id,
|
||||
slot: 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue