mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-09-01 01:50:17 +02:00
fix nil reference crash in tube autorouter when unknown nodes are nearby
(?)
This commit is contained in:
parent
d33eb89dcb
commit
937a8a5732
|
@ -100,7 +100,7 @@ local function tube_autoroute(pos)
|
|||
if is_tube(node.name) then
|
||||
active[i] = 1
|
||||
-- handle new style connectors
|
||||
elseif idef.tube and idef.tube.connect_sides then
|
||||
elseif idef and idef.tube and idef.tube.connect_sides then
|
||||
local dir = adjustments[i]
|
||||
if idef.tube.connect_sides[nodeside(node, {x=-dir.x, y=-dir.y, z=-dir.z})] then active[i] = 1 end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user