Fixed HeldItem were swapped in mining

This commit is contained in:
Yosshi999 2014-09-07 11:29:17 +09:00
parent 84e62598ce
commit 4ecec42c9d

View File

@ -1968,7 +1968,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$this->inventory->setHotbarSlotIndex($packet->slot, $packet->slot); //links $hotbar[$packet->slot] to $slots[$packet->slot] $this->inventory->setHotbarSlotIndex($packet->slot, $packet->slot); //links $hotbar[$packet->slot] to $slots[$packet->slot]
} }
}else{ }else{
$this->inventory->setHeldItemSlot($packet->slot);
} }
$transaction = new BaseTransaction($this->inventory, $packet->slot, $this->inventory->getItem($packet->slot), $packet->item); $transaction = new BaseTransaction($this->inventory, $packet->slot, $this->inventory->getItem($packet->slot), $packet->item);
}elseif(isset($this->windowIndex[$packet->windowid])){ }elseif(isset($this->windowIndex[$packet->windowid])){