diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index e64bd101..bd1a1fa5 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1196,24 +1196,12 @@ minetest.register_node("default:chest_locked", { return inv:is_empty("main") and has_locked_chest_privilege(meta, player) end, allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) - local meta = minetest.get_meta(pos) - if not has_locked_chest_privilege(meta, player) then - return 0 - end return count end, allow_metadata_inventory_put = function(pos, listname, index, stack, player) - local meta = minetest.get_meta(pos) - if not has_locked_chest_privilege(meta, player) then - return 0 - end return stack:get_count() end, allow_metadata_inventory_take = function(pos, listname, index, stack, player) - local meta = minetest.get_meta(pos) - if not has_locked_chest_privilege(meta, player) then - return 0 - end return stack:get_count() end, on_metadata_inventory_put = function(pos, listname, index, stack, player)