From d3af45409bfbb48e39ffcfa2b432131f02d5e680 Mon Sep 17 00:00:00 2001 From: NullBite Date: Tue, 15 Mar 2022 23:46:11 -0400 Subject: [PATCH] Fix indentation --- script.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/script.lua b/script.lua index 71fe40f..1c9abdc 100644 --- a/script.lua +++ b/script.lua @@ -97,18 +97,18 @@ end -- Timer (not mine lol) -- do - local timers = {} - function wait(ticks,next) - table.insert(timers, {t=world.getTime()+ticks,n=next}) - end - function tick() - for key,timer in pairs(timers) do - if world.getTime() >= timer.t then - timer.n() - table.remove(timers,key) - end - end - end + local timers = {} + function wait(ticks,next) + table.insert(timers, {t=world.getTime()+ticks,n=next}) + end + function tick() + for key,timer in pairs(timers) do + if world.getTime() >= timer.t then + timer.n() + table.remove(timers,key) + end + end + end end -- named timers (this one is mine but heavily based on the other) --