From: Vanessa Ezekowitz Date: Mon, 15 Jul 2013 22:50:28 +0000 (-0400) Subject: fixed a nil reference (filter code didn't check for unknown nodes) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=26bcbd8d6f13c774b5e82bcbdd88d525af5d1dad;p=zefram%2Fminetest%2Fpipeworks.git fixed a nil reference (filter code didn't check for unknown nodes) --- 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)