diff --git a/cybersyn/scripts/factorio-api.lua b/cybersyn/scripts/factorio-api.lua index a34109e..cf78fc0 100644 --- a/cybersyn/scripts/factorio-api.lua +++ b/cybersyn/scripts/factorio-api.lua @@ -48,7 +48,7 @@ function se_get_space_elevator_name(cache, surface) end if not entity or not entity.valid then - --Chaching failed, default to expensive lookup + --Caching failed, default to expensive lookup entity = surface.find_entities_filtered({ name = SE_ELEVATOR_STOP_PROTO_NAME, type = "train-stop", diff --git a/cybersyn/scripts/main.lua b/cybersyn/scripts/main.lua index ce6b93a..978893d 100644 --- a/cybersyn/scripts/main.lua +++ b/cybersyn/scripts/main.lua @@ -849,7 +849,7 @@ local function register_tick() script.on_nth_tick(nil) --edge case catch to register both main and manager tick if they're scheduled to run on the same ticks if mod_settings.manager_enabled and mod_settings.manager_ups == mod_settings.tps and mod_settings.tps > DELTA then - local nth_tick = ceil(60/mod_settings.tps) + local nth_tick = ceil(60/mod_settings.tps)--[[@as uint]] script.on_nth_tick(nth_tick, function() tick(global, mod_settings) manager.tick(global)