From 26474b3f5c6d44f772d57ecfc2df03c2341c387a Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Mon, 15 Oct 2018 20:24:05 +0200 Subject: [PATCH] owner check --- technic_chests/register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technic_chests/register.lua b/technic_chests/register.lua index 61d49d3..98f01eb 100644 --- a/technic_chests/register.lua +++ b/technic_chests/register.lua @@ -304,7 +304,7 @@ function technic.chests:definition(name, data) def.can_dig = function(pos,player) local meta = minetest.get_meta(pos); local inv = meta:get_inventory() - return inv:is_empty("main") and default.can_interact_with_node(player, pos) + return inv:is_empty("main") and player and player:is_player() and default.can_interact_with_node(player, pos) end def.on_skeleton_key_use = function(pos, player, newsecret) local meta = minetest.get_meta(pos)