mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
fix wrong reference introduced in 436fdfac
causing can_dig for mailboxes always to fail
This commit is contained in:
parent
9e7ddd4a40
commit
32ef2377d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user