Initial config file

This commit is contained in:
Maciej Kasatkin 2012-10-28 20:24:38 +01:00
parent 01b21d49af
commit 335061997e
2 changed files with 7 additions and 1 deletions

2
config.lua Normal file
View File

@ -0,0 +1,2 @@
enable_item_drop=true
enable_item_pickup=false

View File

@ -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_chest", "technic:mithril_chest")
minetest.register_alias("mithril_locked_chest", "technic:mithril_locked_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").."/concrete.lua")
dofile(minetest.get_modpath("technic").."/iron_chest.lua") dofile(minetest.get_modpath("technic").."/iron_chest.lua")
dofile(minetest.get_modpath("technic").."/copper_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").."/flashlight.lua")
dofile(minetest.get_modpath("technic").."/cans.lua") dofile(minetest.get_modpath("technic").."/cans.lua")
dofile(minetest.get_modpath("technic").."/chainsaw.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) function has_locked_chest_privilege(meta, player)