compatible with k2 beta

This commit is contained in:
Brevven 2021-11-05 22:29:39 -07:00
parent 8e2af7422d
commit efe954b700
5 changed files with 16 additions and 3 deletions

View file

@ -22,6 +22,13 @@ function util.get_stack_size(default)
return default
end
function util.k2assets()
if mods["Krastorio2Assets"] then
return "__Krastorio2Assets__"
end
return "__Krastorio2__/graphics"
end
-- check if a table contains a sought value
function util.contains(table, sought)
for i, value in pairs(table) do