fix wrong reference introduced in 436fdfac causing can_dig for mailboxes always to fail

This commit is contained in:
Tim 2016-08-27 21:11:16 +02:00
parent 9e7ddd4a40
commit 32ef2377d4

View File

@ -64,7 +64,7 @@ minetest.register_node("inbox:empty", {
local name = player and player:get_player_name()
local owner = meta:get_string("owner")
local inv = meta:get_inventory()
return player == owner and inv:is_empty("main")
return name == owner and inv:is_empty("main")
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)