Merge pull request #114 from 109C/master

Fixed sending malformed items, that caused the client to have visual bugs
This commit is contained in:
Romain Beaumont 2015-11-23 03:18:45 +01:00
commit 00244db976

View file

@ -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,