mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
Clear chunk cache on tile change
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user