summaryrefslogtreecommitdiff
path: root/inbox
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-16 18:12:21 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-16 18:12:21 -0400
commit75e0a665ce2a45e1158a427d3f70f854f5f4d5a8 (patch)
tree881209e2c8f7efcbce69482bc3caa19b4828e290 /inbox
parentb8cd2f723c7c9079e631d7a4078862ff47b24915 (diff)
downloaddreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.gz
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.bz2
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.tar.xz
dreambuilder_modpack-75e0a665ce2a45e1158a427d3f70f854f5f4d5a8.zip
Updated several mods for Minetest 0.4.16
castles modpack, areas, biome_lib, blox, boost_cart, plantlife modpack caverealms, coloredwood, concrete, currency, farming redo, home decor, ilights, mesecons, moreores, pipeworks, signs_lib, technic, unified inventory unified bricks, unified dyes, worldedit, and xban2
Diffstat (limited to 'inbox')
-rw-r--r--inbox/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/inbox/init.lua b/inbox/init.lua
index 280edf2..5ee77a8 100644
--- a/inbox/init.lua
+++ b/inbox/init.lua
@@ -92,6 +92,19 @@ minetest.register_node("inbox:empty", {
end
end
end,
+ allow_metadata_inventory_take = function(pos, listname, index, stack, player)
+ local meta = minetest.get_meta(pos)
+ local owner = meta:get_string("owner")
+ if player:get_player_name() == owner or
+ minetest.check_player_privs(player, "protection_bypass") and
+ clicker:get_player_control().aux1 then
+ return stack:get_count()
+ end
+ return 0
+ end,
+ allow_metadata_inventory_move = function(pos)
+ return 0
+ end,
})
function inbox.get_inbox_formspec(pos)