mirror of
https://github.com/minetest-mods/technic.git
synced 2025-12-30 18:45:28 +01:00
Add "enable_producers" option
Defaults to true, but if set to false skips registering everything that produces energy. Intended for use in conjunction with creative mode but will work regardless.
This commit is contained in:
@@ -14,6 +14,7 @@ local defaults = {
|
|||||||
enable_longterm_radiation_damage = "true",
|
enable_longterm_radiation_damage = "true",
|
||||||
enable_nuclear_reactor_digiline_selfdestruct = "false",
|
enable_nuclear_reactor_digiline_selfdestruct = "false",
|
||||||
creative_mode = "false",
|
creative_mode = "false",
|
||||||
|
enable_producers = "true",
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v in pairs(defaults) do
|
for k, v in pairs(defaults) do
|
||||||
|
|||||||
@@ -8,9 +8,11 @@ dofile(path.."/cables.lua")
|
|||||||
dofile(path.."/battery_box.lua")
|
dofile(path.."/battery_box.lua")
|
||||||
|
|
||||||
-- Generators
|
-- Generators
|
||||||
dofile(path.."/solar_array.lua")
|
if technic.config:get_bool("enable_producers") then
|
||||||
dofile(path.."/nuclear_reactor.lua")
|
dofile(path.."/solar_array.lua")
|
||||||
dofile(path.."/generator.lua")
|
dofile(path.."/nuclear_reactor.lua")
|
||||||
|
dofile(path.."/generator.lua")
|
||||||
|
end
|
||||||
|
|
||||||
-- Machines
|
-- Machines
|
||||||
dofile(path.."/quarry.lua")
|
dofile(path.."/quarry.lua")
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ dofile(path.."/cables.lua")
|
|||||||
dofile(path.."/battery_box.lua")
|
dofile(path.."/battery_box.lua")
|
||||||
|
|
||||||
-- Generators
|
-- Generators
|
||||||
dofile(path.."/solar_panel.lua")
|
if technic.config:get_bool("enable_producers") then
|
||||||
dofile(path.."/solar_array.lua")
|
dofile(path.."/solar_panel.lua")
|
||||||
dofile(path.."/geothermal.lua")
|
dofile(path.."/solar_array.lua")
|
||||||
dofile(path.."/water_mill.lua")
|
dofile(path.."/geothermal.lua")
|
||||||
dofile(path.."/generator.lua")
|
dofile(path.."/water_mill.lua")
|
||||||
|
dofile(path.."/generator.lua")
|
||||||
|
end
|
||||||
|
|
||||||
-- Machines
|
-- Machines
|
||||||
dofile(path.."/alloy_furnace.lua")
|
dofile(path.."/alloy_furnace.lua")
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ dofile(path.."/cables.lua")
|
|||||||
dofile(path.."/battery_box.lua")
|
dofile(path.."/battery_box.lua")
|
||||||
|
|
||||||
-- Generators
|
-- Generators
|
||||||
if technic.config:get_bool("enable_wind_mill") then
|
if technic.config:get_bool("enable_producers") then
|
||||||
dofile(path.."/wind_mill.lua")
|
if technic.config:get_bool("enable_wind_mill") then
|
||||||
|
dofile(path.."/wind_mill.lua")
|
||||||
|
end
|
||||||
|
dofile(path.."/generator.lua")
|
||||||
|
dofile(path.."/solar_array.lua")
|
||||||
end
|
end
|
||||||
dofile(path.."/generator.lua")
|
|
||||||
dofile(path.."/solar_array.lua")
|
|
||||||
|
|
||||||
-- Machines
|
-- Machines
|
||||||
dofile(path.."/alloy_furnace.lua")
|
dofile(path.."/alloy_furnace.lua")
|
||||||
|
|||||||
Reference in New Issue
Block a user