mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fixed Chest->unpair()
This commit is contained in:
parent
afaa2cf722
commit
5e55c3a8f0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user