aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOch Noe <och_noe@forksworld.de>2020-11-13 18:12:57 +0100
committerOch Noe <och_noe@forksworld.de>2020-11-13 18:12:57 +0100
commitf9d85c00e5716204d9cb561b458cd1373bbd0d34 (patch)
tree08e8ae5bf8b18c7dde21849c80a1993921bf320f
parentfb0dda5bf1bf31cbd043b6e29d7f8a32bdd66274 (diff)
downloadmoreblocks-f9d85c00e5716204d9cb561b458cd1373bbd0d34.tar.gz
moreblocks-f9d85c00e5716204d9cb561b458cd1373bbd0d34.tar.bz2
moreblocks-f9d85c00e5716204d9cb561b458cd1373bbd0d34.zip
2m long slopes are now train slope compatible
-rw-r--r--stairsplus/slopes.lua3
1 files changed, 3 insertions, 0 deletions
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