Initial config file
authorMaciej Kasatkin <mk@realbadangel.pl>
Sun, 28 Oct 2012 19:24:38 +0000 (20:24 +0100)
committerMaciej Kasatkin <mk@realbadangel.pl>
Sun, 28 Oct 2012 19:24:38 +0000 (20:24 +0100)
config.lua [new file with mode: 0644]
init.lua

diff --git a/config.lua b/config.lua
new file mode 100644 (file)
index 0000000..c53fba9
--- /dev/null
@@ -0,0 +1,2 @@
+enable_item_drop=true
+enable_item_pickup=false
index b81371ac4ab0230445cd1087a011e2c181dc0ecc..3e78f31714728c000bee2bb6d9707dbe571db8ab 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -14,6 +14,10 @@ minetest.register_alias("gold_locked_chest", "technic:gold_locked_chest")
 minetest.register_alias("mithril_chest", "technic:mithril_chest")
 minetest.register_alias("mithril_locked_chest", "technic:mithril_locked_chest")
 
+--Read technic config file
+dofile(minetest.get_modpath("technic").."/config.lua")
+
+
 dofile(minetest.get_modpath("technic").."/concrete.lua")
 dofile(minetest.get_modpath("technic").."/iron_chest.lua")
 dofile(minetest.get_modpath("technic").."/copper_chest.lua")
@@ -47,7 +51,7 @@ dofile(minetest.get_modpath("technic").."/tree_tap.lua")
 dofile(minetest.get_modpath("technic").."/flashlight.lua")
 dofile(minetest.get_modpath("technic").."/cans.lua")
 dofile(minetest.get_modpath("technic").."/chainsaw.lua")
-dofile(minetest.get_modpath("technic").."/item_drop.lua")
+if enable_item_drop then dofile(minetest.get_modpath("technic").."/item_drop.lua") end
 
 
 function has_locked_chest_privilege(meta, player)