add world.get_logic, set_logic 'block_ticks', 'random_ticks' runtime world parameters

This commit is contained in:
MihailRis 2026-10-14 12:15:32 +03:00
parent bccc6e154f
commit d0803fce0c
5 changed files with 110 additions and 9 deletions

View file

@ -197,7 +197,9 @@ local function __process_post_runnables()
network.__process_events()
if not hud or not hud.is_paused() then
internals.process_block_register_events()
internals.tick_updating_blocks(time.delta())
if world.is_open() and world.get_logic("block_ticks") then
internals.tick_updating_blocks(time.delta())
end
end
end