From d6ab1a9a87962482c449576bd5957dd33424d2e0 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 15 Jan 2013 20:58:53 +0100 Subject: [PATCH] Fixed events on BlockAPI --- src/API/BlockAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index bbea3087..a6282c7f 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -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],