Merge pull request #3448 from willowmaster66/willowmaster66-patch-4

First item in the hotbar is not loaded correctly
This commit is contained in:
Shoghi Cervantes 2015-09-05 18:19:45 +02:00
commit 59a775f82c

View File

@ -1769,7 +1769,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
if($this->isCreative()){
$this->inventory->setHeldItemSlot(0);
}else{
$this->inventory->setHeldItemSlot(0);
$this->inventory->setHeldItemSlot($this->inventory->getHotbarSlotIndex(0));
}
$pk = new PlayStatusPacket();