summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-03-16 23:40:26 +0100
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-03-16 18:58:41 -0400
commit137695ea67cf7096311c893de7cf139e6307b26b (patch)
tree8ca4a5b55a3bb93102fa50b3be6df23072a4fd5b
parentb00e942824cae5e8c8e272d3ba2d04515b6fb389 (diff)
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
-rw-r--r--technic/config.lua1
-rw-r--r--technic/machines/other/init.lua4
2 files changed, 4 insertions, 1 deletions
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")