mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Level: use isInWorld() where appropriate
This commit is contained in:
parent
6e05b5cc4b
commit
38d419fb29
@ -1782,7 +1782,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