From f9d85c00e5716204d9cb561b458cd1373bbd0d34 Mon Sep 17 00:00:00 2001 From: Och Noe Date: Fri, 13 Nov 2020 18:12:57 +0100 Subject: 2m long slopes are now train slope compatible --- stairsplus/slopes.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stairsplus/slopes.lua b/stairsplus/slopes.lua index 6d934f6..91a78f2 100644 --- a/stairsplus/slopes.lua +++ b/stairsplus/slopes.lua @@ -252,6 +252,9 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields) def.description = desc def.use_texture_alpha = fields.use_texture_alpha def.groups = stairsplus:prepare_groups(fields.groups) + if alternate == "_half" or alternate == "_half_raised" then + def.groups.not_blocking_trains = 1 + end if fields.drop and not (type(fields.drop) == "table") then def.drop = modname.. ":slope_" ..fields.drop..alternate end -- cgit v1.2.3