summaryrefslogtreecommitdiff
path: root/technic_chests
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2018-06-28 19:49:04 +0200
committerSmallJoker <mk939@ymail.com>2018-06-28 19:49:04 +0200
commit6664714313773e0a0b6e1d55dd2d89c3c571fe18 (patch)
treed379138e990f824920245ca73d067f35c7a075f9 /technic_chests
parentc93bfefd9fb66cab4a766b4e6a4d361a85503685 (diff)
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..
Diffstat (limited to 'technic_chests')
-rw-r--r--technic_chests/common.lua4
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 @@ 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