mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fix explosions over 128 do not damage blocks
This commit is contained in:
parent
577dbbce1f
commit
35b3259053
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user