better fire

This commit is contained in:
GameHerobrine 2024-03-16 23:43:12 +03:00
parent 168ef84165
commit 773e18282c
3 changed files with 72 additions and 3 deletions

View file

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