mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Replaced some bad usages of Vector3 get*() with their respective getFloor*()
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user