1/16 slabs are now train compatible

master
Och Noe 2021-07-28 13:08:42 +02:00
parent 07add6dd15
commit e21568c31a
2 changed files with 14 additions and 0 deletions

View File

@ -158,3 +158,14 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
})
end

View File

@ -96,6 +96,9 @@ function stairsplus:register_slab(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
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":slab_" .. fields.drop .. alternate
end