Skip to content
Snippets Groups Projects
Commit 36d29221 authored by DarkGod's avatar DarkGod
Browse files

sanity check for addons doing something weird

parent 8544a180
No related branches found
No related tags found
No related merge requests found
...@@ -582,6 +582,7 @@ function resolvers.calc.moddable_tile(t, e) ...@@ -582,6 +582,7 @@ function resolvers.calc.moddable_tile(t, e)
elseif slot == "shotbag" then r = {"shotbag_01","shotbag_02","shotbag_03","shotbag_04","shotbag_05"} elseif slot == "shotbag" then r = {"shotbag_01","shotbag_02","shotbag_03","shotbag_04","shotbag_05"}
elseif slot == "gembag" then r = {"gembag_01","gembag_02","gembag_03","gembag_04","gembag_05"} elseif slot == "gembag" then r = {"gembag_01","gembag_02","gembag_03","gembag_04","gembag_05"}
end end
if not r then return end
local ml = e.material_level or 1 local ml = e.material_level or 1
r = r[util.bound(ml, 1, #r)] r = r[util.bound(ml, 1, #r)]
if r2 then if r2 then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment