Server can be joined, again! (fixed weak references and blocks)

This commit is contained in:
Shoghi Cervantes
2014-05-23 23:12:15 +02:00
parent a2b3a4bb90
commit 5460ccf41c
6 changed files with 21 additions and 22 deletions

View File

@ -47,6 +47,10 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
protected function initEntity(){
$this->inventory = new PlayerInventory($this);
if($this instanceof Player){
$this->addWindow($this->inventory, 0);
}
if(isset($this->namedtag->NameTag)){
$this->nameTag = $this->namedtag["NameTag"];