Fix explosions over 128 do not damage blocks

This commit is contained in:
Dylan K. Taylor 2016-12-02 00:01:38 +00:00
parent 577dbbce1f
commit 35b3259053

View File

@ -90,7 +90,7 @@ class Explosion{
$vBlock->x = $pointerX >= $x ? $x : $x - 1;
$vBlock->y = $pointerY >= $y ? $y : $y - 1;
$vBlock->z = $pointerZ >= $z ? $z : $z - 1;
if($vBlock->y < 0 or $vBlock->y > 127){
if($vBlock->y < 0 or $vBlock->y >= Level::Y_MAX){
break;
}
$block = $this->level->getBlock($vBlock);