mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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();
|
$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->spawnToAll();
|
||||||
$this->checkPairing();
|
|
||||||
|
|
||||||
if($tile instanceof Chest){
|
if($tile instanceof Chest){
|
||||||
|
unset($tile->namedtag->pairx, $tile->namedtag->pairz);
|
||||||
|
$tile->checkPairing();
|
||||||
$tile->spawnToAll();
|
$tile->spawnToAll();
|
||||||
}
|
}
|
||||||
|
$this->checkPairing();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user