mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
Merge branch 'stable'
This commit is contained in:
commit
f9bfaa0c6a
@ -247,7 +247,7 @@ class Human extends Living implements ProjectileSource, InventoryHolder{
|
|||||||
//Old hotbar saving stuff, ignore it
|
//Old hotbar saving stuff, ignore it
|
||||||
}elseif($slot >= 100 and $slot < 104){ //Armor
|
}elseif($slot >= 100 and $slot < 104){ //Armor
|
||||||
$this->armorInventory->setItem($slot - 100, Item::nbtDeserialize($item));
|
$this->armorInventory->setItem($slot - 100, Item::nbtDeserialize($item));
|
||||||
}else{
|
}elseif($slot >= 9 and $slot < $this->inventory->getSize() + 9){
|
||||||
$this->inventory->setItem($slot - 9, Item::nbtDeserialize($item));
|
$this->inventory->setItem($slot - 9, Item::nbtDeserialize($item));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user