Clear chunk cache on tile change

This commit is contained in:
Shoghi Cervantes
2015-06-04 17:36:06 +02:00
parent 71490f60f2
commit 188f4d7778
2 changed files with 11 additions and 0 deletions

View File

@ -57,6 +57,11 @@ class Sign extends Spawnable{
$this->namedtag->Text4 = new String("Text4", $line4);
$this->spawnToAll();
if($this->chunk){
$this->chunk->setChanged();
$this->level->clearChunkCache($this->chunk->getX(), $this->chunk->getZ());
}
return true;
}