Fix crash when digging locked chests

master
Brandon 2014-05-26 08:17:52 -05:00
parent 46b914e842
commit 5cdcd61a36
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ minetest.register_node("default:chest_locked", {
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
--local inv = meta:get_inventory()
local inv = meta:get_inventory()
if has_locked_chest_privilege(meta, player) then
if inv:is_empty("main") == false then
default.dump_inv(pos,"main")