mirror of
https://github.com/factoriolib/flib.git
synced 2025-09-06 20:31:55 +00:00
Remove legacy translations-per-tick setting
This commit is contained in:
10
settings.lua
10
settings.lua
@@ -1,10 +0,0 @@
|
||||
data:extend({
|
||||
{
|
||||
type = "int-setting",
|
||||
name = "flib-translations-per-tick",
|
||||
setting_type = "runtime-global",
|
||||
default_value = 50,
|
||||
minimum_value = 1,
|
||||
hidden = true,
|
||||
},
|
||||
})
|
@@ -24,8 +24,7 @@ function flib_translation.iterate_batch(event_data)
|
||||
if __translation.translating_players_count == 0 then
|
||||
return
|
||||
end
|
||||
local translations_per_tick = settings.global["flib-translations-per-tick"].value
|
||||
local iterations = math.ceil(translations_per_tick / __translation.translating_players_count)
|
||||
local iterations = math.ceil(5 / __translation.translating_players_count)
|
||||
if iterations < 1 then
|
||||
iterations = 1
|
||||
end
|
||||
|
Reference in New Issue
Block a user