diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index ac0ff28a..4f994a78 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -90,7 +90,7 @@ class BlockAPI{ return $i; } - public function setBlock($block, $id, $meta, $update = true, $tiles = false){ + public function setBlock(Vector3 $block, $id, $meta, $update = true, $tiles = false){ if(($block instanceof Vector3) or (($block instanceof Block) and $block->inWorld === true)){ $this->server->api->level->setBlock($block->x, $block->y, $block->z, (int) $id, (int) $meta, $update, $tiles); return true;