SmallJoker
2018-06-28 6664714313773e0a0b6e1d55dd2d89c3c571fe18
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..
1 files modified
4 ■■■ changed files
technic_chests/common.lua 4 ●●● patch | view | raw | blame | history
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