Removed InventoryType, added new inventory API methods

This commit is contained in:
Dylan K. Taylor
2017-08-07 11:31:36 +01:00
parent 899e318a88
commit 98e0a2ecba
13 changed files with 115 additions and 264 deletions

View File

@ -33,7 +33,7 @@ abstract class ContainerInventory extends BaseInventory{
parent::onOpen($who);
$pk = new ContainerOpenPacket();
$pk->windowid = $who->getWindowId($this);
$pk->type = $this->getType()->getNetworkType();
$pk->type = $this->getNetworkType();
$holder = $this->getHolder();
if($holder instanceof Vector3){
$pk->x = $holder->getX();