Fixed events on BlockAPI

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-15 20:58:53 +01:00
parent fe7595e313
commit d6ab1a9a87

View File

@ -39,7 +39,7 @@ class BlockAPI{
}
public function init(){
$this->server->addHandler("world.block.update", array($this, "updateBlockRemote"), 1);
$this->server->addHandler("block.update", array($this, "updateBlockRemote"), 1);
$this->server->addHandler("player.block.break", array($this, "blockBreak"), 1);
$this->server->addHandler("player.block.action", array($this, "blockAction"), 1);
$this->server->api->console->register("give", "Give items to a player", array($this, "commandHandler"));
@ -80,7 +80,7 @@ class BlockAPI{
}
private function cancelAction($block){
$this->server->api->dhandle("world.block.change", array(
$this->server->api->dhandle("block.change", array(
"x" => $block[2][0],
"y" => $block[2][1],
"z" => $block[2][2],