mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
BlockAPI::setBlock now uses a Vector3
This commit is contained in:
parent
40842ec794
commit
9ec9d22bbc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user