aboutsummaryrefslogtreecommitdiff
path: root/stairsplus
diff options
context:
space:
mode:
Diffstat (limited to 'stairsplus')
-rw-r--r--stairsplus/microblocks.lua3
-rw-r--r--stairsplus/panels.lua3
2 files changed, 6 insertions, 0 deletions
diff --git a/stairsplus/microblocks.lua b/stairsplus/microblocks.lua
index 50d8487..0e41936 100644
--- a/stairsplus/microblocks.lua
+++ b/stairsplus/microblocks.lua
@@ -95,6 +95,9 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.groups = stairsplus:prepare_groups(fields.groups)
+ if alternate == "_1" then
+ def.groups.not_blocking_trains = 1
+ end
def.description = desc
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":micro_" ..fields.drop..alternate
diff --git a/stairsplus/panels.lua b/stairsplus/panels.lua
index 98e77fd..82a7300 100644
--- a/stairsplus/panels.lua
+++ b/stairsplus/panels.lua
@@ -96,6 +96,9 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
def.on_place = minetest.rotate_node
def.description = desc
def.groups = stairsplus:prepare_groups(fields.groups)
+ if alternate == "_1" then
+ def.groups.not_blocking_trains = 1
+ end
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":panel_" ..fields.drop..alternate
end