unfix of particial fix

This commit is contained in:
GameHerobrine 2023-01-23 23:56:50 +03:00
parent fa8176d380
commit f864e4db38
3 changed files with 20 additions and 20 deletions

View file

@ -9,7 +9,7 @@ class FlintSteelItem extends ItemTool{
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->getMetadata() >= $this->getMaxDurability()){
$player->setSlot($player->slot, new Item(AIR, 0, 0), true); //TODO check
$player->setSlot($player->slot, new Item(AIR, 0, 0), false); //TODO check
}
if($block->getID() === AIR and ($target instanceof SolidBlock)){