That looks ideal.orzelek wrote:I'm using simple code check for the item:item[1] is name, item[2] is tech level to add it to.Code: Select all
if deadlock_crating then for _, item in pairs(itemTable) do if data.raw.item[item[1]] then deadlock_crating.create(item[1], "deadlock-crating-"..item[2]) end end end
It's strange that this check would pass but item got broken.
One thing might be that I don't enable thorium in bob's mods and I let Clown's mod to add it. I have full set of bob's, angels and clowns I think.
So it seems to work fine at this end when Bob's isn't installed at all. Try working backwards from there ... The only thing I can think of is that whatever version of thorium ore it's picking up, has a malformed icons[] property, i.e. it specifies some kind of icons array but an element in that array doesn't specify icon= ...