Position: rename getWorldNonNull() to getWorld(), remove original getWorld()

This commit is contained in:
Dylan K. Taylor
2020-06-29 21:19:46 +01:00
parent fc22fd80d8
commit 670ad9eb9d
81 changed files with 259 additions and 275 deletions

View File

@@ -2043,7 +2043,7 @@ class World implements ChunkManager{
throw new \InvalidArgumentException("Attempted to add a garbage closed Tile to world");
}
$pos = $tile->getPos();
if(!$pos->isValid() || $pos->getWorldNonNull() !== $this){
if(!$pos->isValid() || $pos->getWorld() !== $this){
throw new \InvalidArgumentException("Invalid Tile world");
}
@@ -2065,7 +2065,7 @@ class World implements ChunkManager{
*/
public function removeTile(Tile $tile) : void{
$pos = $tile->getPos();
if(!$pos->isValid() || $pos->getWorldNonNull() !== $this){
if(!$pos->isValid() || $pos->getWorld() !== $this){
throw new \InvalidArgumentException("Invalid Tile world");
}