found a crash, I had launched a nuke at a large alien base and unequipped the rocket and ammo during the explosion (to avoid any accidental nukes going off while switching weapons in combat). Also, I wasnt carrying the electrogun at the time of the crash.
Error while running event Electrogun::on_entity_died (ID 4)
LuaItemStack API call when LuaItemStack was invalid.
stack traceback:
Electrogun/control.lua:6: in function <Electrogun/control.lua:1>
good mod btw.