Merge branch 'pipeworks_fix_connected_chests' into NALC2

This commit is contained in:
sys4-fr 2017-04-09 12:48:57 +02:00
commit 7d66384514
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ local function punch_filter(data, filtpos, filtnode, msg)
local fromnode = minetest.get_node(frompos)
-- Fix crash with connected_chests (sys4 fix for MFF)
if fromnode.name == "connected_chests:chest_right" then
if fromnode and fromnode.name == "connected_chests:chest_right" then
local v_mul = vector.multiply(dir, 2)
frompos = vector.subtract(filtpos, v_mul)
fromnode = minetest.get_node(frompos)