Fixed Chest->unpair()

This commit is contained in:
Shoghi Cervantes 2014-10-29 13:21:14 +01:00
parent afaa2cf722
commit 5e55c3a8f0

View File

@ -230,14 +230,16 @@ class Chest extends Spawnable implements InventoryHolder, Container{
}
$tile = $this->getPair();
unset($this->namedtag->pairx, $this->namedtag->pairz, $tile->namedtag->pairx, $tile->namedtag->pairz);
unset($this->namedtag->pairx, $this->namedtag->pairz);
$this->spawnToAll();
$this->checkPairing();
if($tile instanceof Chest){
unset($tile->namedtag->pairx, $tile->namedtag->pairz);
$tile->checkPairing();
$tile->spawnToAll();
}
$this->checkPairing();
return true;
}