mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Level: use isInWorld() where appropriate
This commit is contained in:
@ -1898,7 +1898,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$clickVector = new Vector3(0.0, 0.0, 0.0);
|
||||
}
|
||||
|
||||
if($blockReplace->y >= $this->worldHeight or $blockReplace->y < 0){
|
||||
if(!$this->isInWorld($blockReplace->x, $blockReplace->y, $blockReplace->z)){
|
||||
//TODO: build height limit messages for custom world heights and mcregion cap
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user