diff options
author | Och Noe <och_noe@forksworld.de> | 2021-07-25 09:12:18 +0200 |
---|---|---|
committer | Och Noe <och_noe@forksworld.de> | 2021-07-25 09:12:18 +0200 |
commit | 07add6dd15763d007c9dc8aa67add43d106a844c (patch) | |
tree | 79223c6b7313928419db238b880a34e0cffabdca /stairsplus | |
parent | 20aa466c834f5dc92ea42a0013021bc0c23387e5 (diff) | |
download | moreblocks-07add6dd15763d007c9dc8aa67add43d106a844c.tar.gz moreblocks-07add6dd15763d007c9dc8aa67add43d106a844c.tar.bz2 moreblocks-07add6dd15763d007c9dc8aa67add43d106a844c.zip |
train compatibilits for flat panels and microblocks ("_1")
Diffstat (limited to 'stairsplus')
-rw-r--r-- | stairsplus/microblocks.lua | 3 | ||||
-rw-r--r-- | stairsplus/panels.lua | 3 |
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 |