mirror of
https://github.com/joe7575/techpack.git
synced 2024-08-20 13:14:12 +02:00
cycletime bugfix
This commit is contained in:
parent
baa0b655b0
commit
b34f5502d2
@ -326,7 +326,7 @@ local function on_timer(pos, elapsed)
|
||||
-- considering cycle frequency
|
||||
local cycletime = meta:get_int("cycletime") or 1
|
||||
local cyclecount = (meta:get_int("cyclecount") or 0) + 1
|
||||
if cyclecount < cycletime then
|
||||
if cycletime == 0 or cyclecount < cycletime then
|
||||
meta:set_int("cyclecount", cyclecount)
|
||||
return true
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user