World: rename getChunkAtPosition() to getOrLoadChunkAtPosition()

this more accurately reflects what it does.
This commit is contained in:
Dylan K. Taylor
2020-11-03 14:12:47 +00:00
parent bd78d0bff8
commit 5cc2a9c3dd
3 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ class Block{
}
public function writeStateToWorld() : void{
$this->pos->getWorld()->getChunkAtPosition($this->pos)->setFullBlock($this->pos->x & 0xf, $this->pos->y, $this->pos->z & 0xf, $this->getFullId());
$this->pos->getWorld()->getOrLoadChunkAtPosition($this->pos)->setFullBlock($this->pos->x & 0xf, $this->pos->y, $this->pos->z & 0xf, $this->getFullId());
$tileType = $this->idInfo->getTileClass();
$oldTile = $this->pos->getWorld()->getTile($this->pos);