2022-06-17 01:32:55 +02:00
|
|
|
stairsplus.compat = {
|
|
|
|
is_legacy_drawtype = function(node)
|
|
|
|
local def = minetest.registered_nodes[node]
|
|
|
|
return (
|
|
|
|
def.drawtype == "mesh" or
|
2022-06-18 01:02:08 +02:00
|
|
|
def.drawtype == "plantlike" or
|
|
|
|
def.drawtype == "nodebox"
|
2022-06-17 01:32:55 +02:00
|
|
|
)
|
2022-06-24 18:44:22 +02:00
|
|
|
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,
|
2022-06-17 01:32:55 +02:00
|
|
|
}
|
2022-06-16 01:18:11 +02:00
|
|
|
|
2022-06-27 17:47:36 +02:00
|
|
|
stairsplus.dofile("compat", "i3")
|
|
|
|
stairsplus.dofile("compat", "unified_inventory")
|
2022-06-14 01:11:20 +02:00
|
|
|
|
2022-06-27 17:47:36 +02:00
|
|
|
stairsplus.dofile("compat", "stairs")
|
|
|
|
stairsplus.dofile("compat", "old_moreblocks")
|