Fixed mess of entity ID 0 for players, fixed emeralds

This commit is contained in:
Dylan K. Taylor
2017-02-20 19:40:28 +00:00
parent d25c8d93ca
commit 1ee689e759
4 changed files with 14 additions and 26 deletions

View File

@ -126,7 +126,7 @@ class PlayerInventory extends BaseInventory{
$item = $this->getItemInHand();
$pk = new MobEquipmentPacket();
$pk->eid = ($target === $this->getHolder() ? 0 : $this->getHolder()->getId());
$pk->eid = $this->getHolder()->getId();
$pk->item = $item;
$pk->slot = $this->getHeldItemSlot();
$pk->selectedSlot = $this->getHeldItemIndex();