From fb4fef783b605dcdc73554019ef46d8354614ad4 Mon Sep 17 00:00:00 2001
From: Louis Royer <55180044+louisroyer@users.noreply.github.com>
Date: Sun, 26 Apr 2020 11:33:12 +0200
Subject: [PATCH] Shapeless locked chests crafts (chest + lockpad) (#530)

---
 technic_chests/common.lua |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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 @@
 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

--
Gitblit v1.8.0