Fixed Flint & Steel order

This commit is contained in:
Shoghi Cervantes 2013-09-06 19:33:16 +02:00
parent e5841e623e
commit 4a2e3d3611

View File

@ -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);
}