Commit 36d292212cf7aca8b2da80331777f6cbc2559dac

Authored by DarkGod
1 parent 8544a180

sanity check for addons doing something weird

... ... @@ -582,6 +582,7 @@ function resolvers.calc.moddable_tile(t, e)
582 582 elseif slot == "shotbag" then r = {"shotbag_01","shotbag_02","shotbag_03","shotbag_04","shotbag_05"}
583 583 elseif slot == "gembag" then r = {"gembag_01","gembag_02","gembag_03","gembag_04","gembag_05"}
584 584 end
  585 + if not r then return end
585 586 local ml = e.material_level or 1
586 587 r = r[util.bound(ml, 1, #r)]
587 588 if r2 then
... ...