BlockAPI::setBlock now uses a Vector3

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-10 13:34:11 +01:00
parent 40842ec794
commit 9ec9d22bbc

View File

@ -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;