Chest bug fix.

This commit is contained in:
Coder12a
2018-10-26 19:43:34 -05:00
parent 80001c9a15
commit 33b9d59fa7
2 changed files with 1 additions and 3 deletions

View File

@ -51,7 +51,7 @@ minetest.register_node("factions:chest", {
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main") and
default.can_interact_with_node(player, pos)
factions.can_use_chest(pos, player:get_player_name())
end,
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
if factions.can_use_chest(pos, player:get_player_name()) then