mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Level: use isInWorld() where appropriate
This commit is contained in:
parent
48dfc5b232
commit
3b103dcd62
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user