Merge pull request #2062 from Yosshi999/patch1

Fixed HeldItem were swapped in mining
This commit is contained in:
Shoghi Cervantes 2014-09-08 07:37:24 +02:00
commit d8c492de4a

View File

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