World: make loadChunk() more useful, drop useless proxy function getOrLoadChunk()

This commit is contained in:
Dylan K. Taylor
2020-11-09 13:41:46 +00:00
parent 3c6a64f91b
commit 66955d4b99
2 changed files with 20 additions and 35 deletions

View File

@@ -1358,7 +1358,7 @@ abstract class Entity{
if($this->chunk !== null){
$this->chunk->removeEntity($this);
}
$this->chunk = $this->getWorld()->getOrLoadChunk($chunkX, $chunkZ, true);
$this->chunk = $this->getWorld()->loadChunk($chunkX, $chunkZ, true);
$this->chunkX = $chunkX;
$this->chunkZ = $chunkZ;