hey.
just want you to know i was bored a bit and watched the code on prismite-common.lua. after a bit of a trial and error i got it working. after your data:extend you can just copy paste the part after --]]. and sorry for the if i offended you with this (and sorry for my bad english), i just want this mod to work with SE BC I LOOOOVE THIS MOD this is one of my biggest dream in a game and SE was my first and also one of the best mods. thats why i did it and i hope you don't take this thread in a bad way. have a good day.
--[[
data:extend({
{
type = "autoplace-control",
name = "prismite-ore",
localised_name = {"", "[entity=prismite-ore] ", {"entity-name.prismite-ore"}},
richness = true,
order = "a-z",
category = "resource"
}
})
if (data.raw.planet.nauvis.map_gen_settings) then
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["prismite-ore"] = {}
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["prismite-ore"] = {}
end
--]]
-- >>> SE compatibility: ensure an autoplace-control exists so mods that assume one won't crash
if not data.raw["autoplace-control"]["prismite-ore"] then
data:extend({
{
type = "autoplace-control",
name = "prismite-ore",
localised_name = {"", "[entity=prismite-ore] ", {"entity-name.prismite-ore"}},
richness = true,
order = "z[voidcraft]-a[prismite-ore]",
category = "resource"
}
})
end
-- <<< end SE compatibility