From e5841e623eda565581c53ae7b903b8579081dc5d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 6 Sep 2013 17:50:01 +0200 Subject: [PATCH] Fixed comparison order with flint & steel metadata --- src/API/BlockAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index c92a319f..6a44ba45 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -270,7 +270,7 @@ class BlockAPI{ if($target->onBreak($item, $player) === false){ return $this->cancelAction($target, $player, false); } - if($item->useOn($target) and ($player->gamemode & 0x01) === 0 and $item->getMetadata() >= $item->getMaxDurability()){ + if(($player->gamemode & 0x01) === 0 and $item->useOn($target) and $item->getMetadata() >= $item->getMaxDurability()){ $player->setSlot($player->slot, new Item(AIR, 0, 0), false); } }else{