Spawnable: remove dead code, deprecate isDirty() and setDirty()

This commit is contained in:
Dylan K. Taylor
2022-04-25 12:46:01 +01:00
parent c8a7a53d70
commit 9f5d4180c9
2 changed files with 14 additions and 12 deletions

View File

@ -188,8 +188,8 @@ class Chest extends Spawnable implements Container, Nameable{
$this->createPair($tile);
$this->setDirty();
$tile->setDirty();
$this->clearSpawnCompoundCache();
$tile->clearSpawnCompoundCache();
$this->checkPairing();
return true;
@ -211,12 +211,12 @@ class Chest extends Spawnable implements Container, Nameable{
$tile = $this->getPair();
$this->pairX = $this->pairZ = null;
$this->setDirty();
$this->clearSpawnCompoundCache();
if($tile instanceof Chest){
$tile->pairX = $tile->pairZ = null;
$tile->checkPairing();
$tile->setDirty();
$tile->clearSpawnCompoundCache();
}
$this->checkPairing();