mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-17 13:31:16 +00:00
Merge pull request #114 from 109C/master
Fixed sending malformed items, that caused the client to have visual bugs
This commit is contained in:
commit
00244db976
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