From 137695ea67cf7096311c893de7cf139e6307b26b Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 16 Mar 2015 23:40:26 +0100 Subject: [PATCH] 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 --- technic/config.lua | 1 + technic/machines/other/init.lua | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/technic/config.lua b/technic/config.lua index e512bee..81a2224 100644 --- a/technic/config.lua +++ b/technic/config.lua @@ -7,6 +7,7 @@ local defaults = { enable_mining_laser = "true", enable_flashlight = "false", enable_wind_mill = "false", + enable_frames = "false", enable_corium_griefing = "true", } diff --git a/technic/machines/other/init.lua b/technic/machines/other/init.lua index 27a47d5..a3640e3 100644 --- a/technic/machines/other/init.lua +++ b/technic/machines/other/init.lua @@ -3,7 +3,9 @@ local path = technic.modpath.."/machines/other" -- mesecons and tubes related dofile(path.."/injector.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") end + dofile(path.."/anchor.lua")