mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Fixed Flint & Steel order
This commit is contained in:
parent
e5841e623e
commit
4a2e3d3611
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class FlintSteelItem extends Item{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
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);
|
$player->setSlot($player->slot, new Item(AIR, 0, 0), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue