mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
Merge branch 'main' into visuals-restoration
This commit is contained in:
commit
c017273374
20 changed files with 105 additions and 54 deletions
|
|
@ -9,6 +9,7 @@ block.__perform_ticks = function(delta)
|
|||
for id, entry in pairs(updating_blocks) do
|
||||
entry.timer = entry.timer + delta
|
||||
local steps = math.floor(entry.timer / entry.delta * #entry / 3)
|
||||
steps = math.min(steps, #entry / 3)
|
||||
if steps == 0 then
|
||||
goto continue
|
||||
end
|
||||
|
|
@ -28,6 +29,7 @@ block.__perform_ticks = function(delta)
|
|||
for id, queue in pairs(present_queues) do
|
||||
queue.timer = queue.timer + delta
|
||||
local steps = math.floor(queue.timer / queue.delta * #queue / 3)
|
||||
steps = math.min(steps, #queue / 3)
|
||||
if steps == 0 then
|
||||
goto continue
|
||||
end
|
||||
|
|
|
|||
|
|
@ -523,8 +523,10 @@ function __process_post_runnables()
|
|||
fn_audio_reset_fetch_buffer()
|
||||
debug.pull_events()
|
||||
network.__process_events()
|
||||
block.__process_register_events()
|
||||
block.__perform_ticks(time.delta())
|
||||
if not hud or not hud.is_paused() then
|
||||
block.__process_register_events()
|
||||
block.__perform_ticks(time.delta())
|
||||
end
|
||||
end
|
||||
|
||||
function time.post_runnable(runnable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue