mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
fix: app.sleep_until max_ticks ignored
This commit is contained in:
parent
ad6a6666da
commit
686ace37f1
1 changed files with 1 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ if app then
|
|||
local ticks = 0
|
||||
while ticks < max_ticks and not predicate() do
|
||||
app.tick()
|
||||
ticks = ticks + 1
|
||||
end
|
||||
if ticks == max_ticks then
|
||||
error("max ticks exceed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue