This commit is contained in:
Shoghi Cervantes
2014-06-16 23:00:54 +02:00
parent 77e914238c
commit 169c55443a
27 changed files with 56 additions and 25 deletions

View File

@ -35,7 +35,7 @@ class FlintSteel extends Tool{
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
if(($player->gamemode & 0x01) === 0 and $this->useOn($block) and $this->getDamage() >= $this->getMaxDurability()){
$player->setSlot($player->getCurrentEquipment(), new Item(Item::AIR, 0, 0));
$player->getInventory()->setItemInHand(new Item(Item::AIR, 0, 0));
}
if($block->getID() === self::AIR and ($target instanceof Solid)){