mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Position: rename getWorldNonNull() to getWorld(), remove original getWorld()
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user