Hi.
PLEASE GIVE REMOTE COMMANDS TO INSERT INTO THIS TABLE:
https://github.com/h8ul-modder/factorio-ribbon-maze/blob/master/control/settings-control.lua#L398
Please & thank you <3
ADD TO BOTTOM OF control.lua:
remote.add_interface("RibbonMaze",{
["insert_mod_surface"]=function(surface_name)
for _,surfaceName in pairs(global.ribbonMazeConfig.modSurfaces)do
if(surfaceName==surface_name)then
return false
end
end
return table.insert(global.ribbonMazeConfig.modSurfaces,surface_name)
end,
["remove_mod_surface"]=function(surface_name)
for tableIndex,surfaceName in pairs(global.ribbonMazeConfig.modSurfaces)do
if(surfaceName==surface_name)then
return table.remove(global.ribbonMazeConfig.modSurfaces,tableIndex)
end
end
return false
end,
})
WHY?
https://mods.factorio.com/mod/warptorio_planet_maze