mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
better fire
This commit is contained in:
parent
168ef84165
commit
773e18282c
3 changed files with 72 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ class FlintSteelItem extends ItemTool{
|
|||
}
|
||||
if($block->getID() === AIR and ($target instanceof SolidBlock)){
|
||||
$level->setBlock($block, new FireBlock(), true, false, true);
|
||||
$block->level->scheduleBlockUpdate($block, Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM);
|
||||
$level->scheduleBlockUpdate($block, 30, BLOCK_UPDATE_SCHEDULED);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue