From 6664714313773e0a0b6e1d55dd2d89c3c571fe18 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Thu, 28 Jun 2018 19:49:04 +0200 Subject: [PATCH] Skip interact check for fake players Fixes crash related to pipeworks default.can_interact_with_node is not official part of the API yet. Using it anyway.. --- technic_chests/common.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/technic_chests/common.lua b/technic_chests/common.lua index 9a5bc7a..6369b7a 100644 --- a/technic_chests/common.lua +++ b/technic_chests/common.lua @@ -28,7 +28,9 @@ technic.chests.can_dig = function(pos, player) end local function inv_change(pos, count, player) - if not default.can_interact_with_node(player, pos) then + -- Skip check for pipeworks (fake player) + if minetest.is_player(player) and + not default.can_interact_with_node(player, pos) then return 0 end return count