fix for k2 stack size unchanged
This commit is contained in:
parent
47453164a4
commit
69e6fc798e
6 changed files with 15 additions and 6 deletions
8
util.lua
8
util.lua
|
|
@ -3,8 +3,12 @@ local util = {}
|
|||
util.lead_ore = "lead-ore"
|
||||
util.lead_plate = "lead-plate"
|
||||
|
||||
function util.get_k2_stack_size()
|
||||
return tonumber(krastorio.general.getSafeSettingValue("kr-stack-size"))
|
||||
function util.get_stack_size(default)
|
||||
if mods["Krastorio2"] then
|
||||
size = tonumber(krastorio.general.getSafeSettingValue("kr-stack-size"))
|
||||
return size or default
|
||||
end
|
||||
return default
|
||||
end
|
||||
|
||||
-- check if a table contains a sought value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue