From 32d658122b4660dcda8db99909b8a9f58a9b71ef Mon Sep 17 00:00:00 2001 From: MinecrafterJPN Date: Mon, 22 Jul 2013 21:59:29 +0900 Subject: [PATCH] Fixed player.block.activate --- src/API/BlockAPI.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 9e478bd08..b7b5d24a4 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -307,6 +307,8 @@ class BlockAPI{ if($target->isActivable === true){ if($this->server->api->dhandle("player.block.activate", array("player" => $player, "block" => $block, "target" => $target, "item" => $item)) !== false and $target->onActivate($item, $player) === true){ return false; + } else { + return $this->cancelAction($target, $player); } }