diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 5645fd804..cba00ef61 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -741,6 +741,10 @@ class BlockAPI{ $pos = new Position($pos->x, $pos->y, $pos->z, $pos->level); $block = $pos->level->getBlock($pos); } + if($block === false){ + return false; + } + $level = $block->onUpdate($type); if($level === BLOCK_UPDATE_NORMAL){ $this->blockUpdateAround($block, $level);