mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-10 20:40:27 +01:00
allow activation/deactivation of frames/templates by config
have them deactivated by default due to a larger collection of associated issues including but not limited to * #170 * #216 * item duplication involving templates * runaway machines * traversal loop issues with huge machines leading to lag-outs
This commit is contained in:
parent
cf75916ea7
commit
70cd235bb8
|
@ -7,6 +7,7 @@ local defaults = {
|
||||||
enable_mining_laser = "true",
|
enable_mining_laser = "true",
|
||||||
enable_flashlight = "false",
|
enable_flashlight = "false",
|
||||||
enable_wind_mill = "false",
|
enable_wind_mill = "false",
|
||||||
|
enable_frames = "false",
|
||||||
enable_corium_griefing = "true",
|
enable_corium_griefing = "true",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,9 @@ local path = technic.modpath.."/machines/other"
|
||||||
-- mesecons and tubes related
|
-- mesecons and tubes related
|
||||||
dofile(path.."/injector.lua")
|
dofile(path.."/injector.lua")
|
||||||
dofile(path.."/constructor.lua")
|
dofile(path.."/constructor.lua")
|
||||||
if minetest.get_modpath("mesecons_mvps") ~= nil then
|
|
||||||
|
if technic.config:get_bool("enable_frames") and minetest.get_modpath("mesecons_mvps") ~= nil then
|
||||||
dofile(path.."/frames.lua")
|
dofile(path.."/frames.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
dofile(path.."/anchor.lua")
|
dofile(path.."/anchor.lua")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user