SmallJoker
2018-07-19 fb93388f06fe87ee75aaaf04cf6edcf01a26d981
technic_chests/init.lua
@@ -2,12 +2,24 @@
-- namespace: technic
-- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
modpath=minetest.get_modpath("technic_chests")
local modpath = minetest.get_modpath("technic_chests")
-- chests
dofile(modpath.."/chest_commons.lua")
technic = rawget(_G, "technic") or {}
technic.chests = {}
dofile(modpath.."/common.lua")
dofile(modpath.."/register.lua")
dofile(modpath.."/iron_chest.lua")
dofile(modpath.."/copper_chest.lua")
dofile(modpath.."/silver_chest.lua")
dofile(modpath.."/gold_chest.lua")
dofile(modpath.."/mithril_chest.lua")
minetest.register_lbm({
   name = "technic_chests:fix_wooden_chests",
   nodenames = {"default:chest"},
   action = function(pos, node)
      local meta = minetest.get_meta(pos)
      meta:set_string("formspec", "")
   end
})