summaryrefslogtreecommitdiff
path: root/technic_chests
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-03 09:31:05 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-03 09:31:05 -0400
commit2fa93b219eadfcdcf8f1d472aad046fc62d5b99d (patch)
treecff2e96e78cd89aa965976553d2ff8989b5a02b5 /technic_chests
parent76594f4bd5f825eaf1245965e2c0933bec47320d (diff)
downloaddreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.gz
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.bz2
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.xz
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.zip
update castles, cottages, digistuff, gloopblocks, locks,
maptools, mesecons, pipeworks, technic, unified inventory, unified dyes, and xban2
Diffstat (limited to 'technic_chests')
-rw-r--r--technic_chests/common.lua4
-rw-r--r--technic_chests/init.lua8
2 files changed, 11 insertions, 1 deletions
diff --git a/technic_chests/common.lua b/technic_chests/common.lua
index 9a5bc7a..6369b7a 100644
--- a/technic_chests/common.lua
+++ b/technic_chests/common.lua
@@ -28,7 +28,9 @@ technic.chests.can_dig = function(pos, player)
end
local function inv_change(pos, count, player)
- if not default.can_interact_with_node(player, pos) then
+ -- Skip check for pipeworks (fake player)
+ if minetest.is_player(player) and
+ not default.can_interact_with_node(player, pos) then
return 0
end
return count
diff --git a/technic_chests/init.lua b/technic_chests/init.lua
index 3565987..6b1a1b2 100644
--- a/technic_chests/init.lua
+++ b/technic_chests/init.lua
@@ -15,3 +15,11 @@ 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
+})