From 44f96dde739faccb2a8324fa7424cb79c57e2c17 Mon Sep 17 00:00:00 2001 From: C109 Date: Sun, 22 Nov 2015 21:03:00 -0500 Subject: [PATCH] Fixed sending malformed items, that caused the client to have visual bugs --- src/lib/plugins/inventory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/plugins/inventory.js b/src/lib/plugins/inventory.js index 34ce546..a8dad72 100644 --- a/src/lib/plugins/inventory.js +++ b/src/lib/plugins/inventory.js @@ -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,