mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Spawnable: don't mark chunk as changed onChanged()
this is unnecessary because a chunk is considered "changed" if it has tiles on it anyway.
This commit is contained in:
parent
a2af838b1d
commit
9c598d1345
@ -79,7 +79,6 @@ abstract class Spawnable extends Tile{
|
|||||||
$this->spawnToAll();
|
$this->spawnToAll();
|
||||||
|
|
||||||
if($this->chunk !== null){
|
if($this->chunk !== null){
|
||||||
$this->chunk->setChanged();
|
|
||||||
$this->level->clearChunkCache($this->chunk->getX(), $this->chunk->getZ());
|
$this->level->clearChunkCache($this->chunk->getX(), $this->chunk->getZ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user