diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 626081965..d40bc59cf 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -1511,7 +1511,7 @@ class Level implements ChunkManager, Metadatable{ public function setBlock(Vector3 $pos, Block $block, bool $update = true) : bool{ $pos = $pos->floor(); if(!$this->isInWorld($pos->x, $pos->y, $pos->z)){ - return false; + throw new \InvalidArgumentException("Pos x=$pos->x,y=$pos->y,z=$pos->z is outside of the world bounds"); } $this->timings->setBlock->startTiming();