mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Merge pull request #3448 from willowmaster66/willowmaster66-patch-4
First item in the hotbar is not loaded correctly
This commit is contained in:
commit
59a775f82c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user