From 4a2e3d36117b3371d28aefcb52815203827fee81 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 6 Sep 2013 19:33:16 +0200 Subject: [PATCH] Fixed Flint & Steel order --- src/material/item/tool/FlintSteel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/item/tool/FlintSteel.php b/src/material/item/tool/FlintSteel.php index 4ad4a483e..2f476c182 100644 --- a/src/material/item/tool/FlintSteel.php +++ b/src/material/item/tool/FlintSteel.php @@ -27,7 +27,7 @@ class FlintSteelItem extends Item{ } public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){ - if($this->useOn($block) and ($player->gamemode & 0x01) === 0 and $this->getMetadata() >= $this->getMaxDurability()){ + if(($player->gamemode & 0x01) === 0 and $this->useOn($block) and $this->getMetadata() >= $this->getMaxDurability()){ $player->setSlot($player->slot, new Item(AIR, 0, 0), false); }