mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Improved fall damage while on jump boost, new protocol update, build 7, allow for live inventory resizing
This commit is contained in:
@ -49,6 +49,11 @@ class PlayerInventory extends BaseInventory{
|
||||
return parent::getSize() - 4; //Remove armor slots
|
||||
}
|
||||
|
||||
public function setSize($size){
|
||||
parent::setSize($size + 4);
|
||||
$this->sendContents($this->getViewers());
|
||||
}
|
||||
|
||||
public function getHotbarSlotIndex($index){
|
||||
return ($index >= 0 and $index < $this->getHotbarSize()) ? $this->hotbar[$index] : -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user