more stuff for compatibility w/ weird old setups

This commit is contained in:
flux
2022-06-24 09:44:22 -07:00
parent 2774e54a70
commit 604697d554
4 changed files with 35 additions and 3 deletions

View File

@ -6,7 +6,15 @@ stairsplus.compat = {
def.drawtype == "plantlike" or
def.drawtype == "nodebox"
)
end
end,
is_legacy_paramtype2 = function(node)
local def = minetest.registered_nodes[node]
return (
def.paramtype2 == "color" or
def.paramtype2 == "colorwallmounted" or
def.paramtype2 == "glasslikeliquidlevel"
)
end,
}
stairsplus.dofile("compat2", "stairs")