summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--item_transport.lua4
1 files 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)