Fix indentation
This commit is contained in:
parent
1bf4859501
commit
d3af45409b
24
script.lua
24
script.lua
@ -97,18 +97,18 @@ end
|
|||||||
|
|
||||||
-- Timer (not mine lol) --
|
-- Timer (not mine lol) --
|
||||||
do
|
do
|
||||||
local timers = {}
|
local timers = {}
|
||||||
function wait(ticks,next)
|
function wait(ticks,next)
|
||||||
table.insert(timers, {t=world.getTime()+ticks,n=next})
|
table.insert(timers, {t=world.getTime()+ticks,n=next})
|
||||||
end
|
end
|
||||||
function tick()
|
function tick()
|
||||||
for key,timer in pairs(timers) do
|
for key,timer in pairs(timers) do
|
||||||
if world.getTime() >= timer.t then
|
if world.getTime() >= timer.t then
|
||||||
timer.n()
|
timer.n()
|
||||||
table.remove(timers,key)
|
table.remove(timers,key)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- named timers (this one is mine but heavily based on the other) --
|
-- named timers (this one is mine but heavily based on the other) --
|
||||||
|
Loading…
x
Reference in New Issue
Block a user