Level: use isInWorld() where appropriate

This commit is contained in:
Dylan K. Taylor 2018-11-04 12:59:34 +00:00
parent 6e05b5cc4b
commit 38d419fb29

View File

@ -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;
}