Level: use isInWorld() where appropriate

This commit is contained in:
Dylan K. Taylor 2018-11-04 12:59:34 +00:00
parent 48dfc5b232
commit 3b103dcd62

View File

@ -1898,7 +1898,7 @@ class Level implements ChunkManager, Metadatable{
$clickVector = new Vector3(0.0, 0.0, 0.0); $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 //TODO: build height limit messages for custom world heights and mcregion cap
return false; return false;
} }