mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-12 04:50:23 +02:00
create proper stairs mod replacement; create option to allow registering stairs w/out a proper recipeitem
This commit is contained in:
@ -1,12 +1,9 @@
|
||||
if stairsplus_legacy.has.stairs then
|
||||
stairsplus.compat.override_stairs("straw", "farming:straw")
|
||||
end
|
||||
|
||||
local farming_nodes = {"straw"}
|
||||
for _, name in pairs(farming_nodes) do
|
||||
local node = ("farming:%s"):format(name)
|
||||
if minetest.registered_nodes[node] then
|
||||
stairsplus_legacy.register_legacy(node)
|
||||
stairsplus.api.register_alias_all(("moreblocks:%s"):format(name), node)
|
||||
stairsplus.api.register_alias_all(("stairs:%s"):format(name), node)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user