Fix missing rails at bridge curves
parent
a30a0a5bfb
commit
3c1bc61179
8
init.lua
8
init.lua
|
@ -369,10 +369,10 @@ local function corridor_part(start_point, segment_vector, segment_count, wood, p
|
||||||
p = vector.add(p, segment_vector)
|
p = vector.add(p, segment_vector)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- End of the corridor; create the final piece
|
-- End of the corridor segment; create the final piece
|
||||||
if is_final then
|
local dug = Cube(p, 1, {name="air"})
|
||||||
local dug = Cube(p, 1, {name="air"})
|
if not chaos_mode and not dug then return false, segment_count end
|
||||||
if not chaos_mode and not dug then return false, segment_count end
|
if segment_vector.y == 0 then
|
||||||
Platform({x=p.x, y=p.y-1, z=p.z}, 1, node_wood)
|
Platform({x=p.x, y=p.y-1, z=p.z}, 1, node_wood)
|
||||||
end
|
end
|
||||||
return true, segment_count
|
return true, segment_count
|
||||||
|
|
Loading…
Reference in New Issue