mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-24 18:00:22 +01:00
fixed a nil reference (filter code didn't check for unknown nodes)
This commit is contained in:
parent
c0af957167
commit
26bcbd8d6f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user