Replaced some bad usages of Vector3 get*() with their respective getFloor*()

This commit is contained in:
Dylan K. Taylor
2018-02-14 18:45:10 +00:00
parent 0b82d5c8d4
commit a84aba5517
5 changed files with 10 additions and 10 deletions

View File

@ -2666,7 +2666,7 @@ class Level implements ChunkManager, Metadatable{
throw new LevelException("Invalid Tile level");
}
$this->tiles[$tile->getId()] = $tile;
$this->clearChunkCache($tile->getX() >> 4, $tile->getZ() >> 4);
$this->clearChunkCache($tile->getFloorX() >> 4, $tile->getFloorZ() >> 4);
}
/**
@ -2681,7 +2681,7 @@ class Level implements ChunkManager, Metadatable{
unset($this->tiles[$tile->getId()]);
unset($this->updateTiles[$tile->getId()]);
$this->clearChunkCache($tile->getX() >> 4, $tile->getZ() >> 4);
$this->clearChunkCache($tile->getFloorX() >> 4, $tile->getFloorZ() >> 4);
}
/**