From 26bcbd8d6f13c774b5e82bcbdd88d525af5d1dad Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 15 Jul 2013 18:50:28 -0400 Subject: [PATCH] fixed a nil reference (filter code didn't check for unknown nodes) --- item_transport.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/item_transport.lua b/item_transport.lua index c89fc06..24fe5a9 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -59,8 +59,8 @@ minetest.register_node("pipeworks:filter", { end local fromnode=minetest.get_node(frompos) local frominv - if not (minetest.registered_nodes[fromnode.name].tube and - minetest.registered_nodes[fromnode.name].tube.input_inventory) then + if (not fromnode) or (not minetest.registered_nodes[fromnode.name]) or (not (minetest.registered_nodes[fromnode.name].tube and + minetest.registered_nodes[fromnode.name].tube.input_inventory)) then return end local frommeta=minetest.get_meta(frompos) -- 2.30.2