mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-26 10:40:37 +01:00
check if fromnode is not nil before apply connected_chests fix
This commit is contained in:
parent
1a7c63f6bd
commit
5c7d2ea9fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user