mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 05:42:33 +01:00
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..
This commit is contained in:
parent
c93bfefd9f
commit
6664714313
@ -28,7 +28,9 @@ technic.chests.can_dig = function(pos, player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function inv_change(pos, count, player)
|
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
|
return 0
|
||||||
end
|
end
|
||||||
return count
|
return count
|
||||||
|
Loading…
Reference in New Issue
Block a user