I updated my mod to have biters attack when cliffs get bombed. In testing I found no errors and all seemed to work fine, but I've gotten a few crash reports.
They are:

and
Error
I've attached the mod. I've also attached a save from the first error report, but I can't load it, get this error:
Error
Here is the code that is erroring out: (it's the "if settings" line
Code: Select all
script.on_event(defines.events.on_trigger_created_entity, function(event)
local entity = event.entity
if settings.startup["NE_Tree_Hugger"].value and global.cliff_explosive[entity.name] then
writeDebug("Cliff Bombed")
Look_and_Attack(entity, 2)
end
end)
Thanks for taking a look.