mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-06-28 12:56:01 +02:00
fix all or edge cases for https://github.com/mt-mods/homedecor_modpack/issues/49 not caught by the last commit
This commit is contained in:
@ -94,16 +94,22 @@ if minetest.get_modpath("doors") then
|
||||
local def
|
||||
for _,mat in ipairs({"wood", "steel"}) do
|
||||
def = table.copy(minetest.registered_nodes["doors:door_"..mat.."_a"])
|
||||
def.groups.handy = 1
|
||||
def._mcl_hardness=0.6
|
||||
def.mesh = "homedecor_3d_door_"..mat.."_a.obj"
|
||||
minetest.register_node(":doors:door_"..mat.."_a", def)
|
||||
|
||||
def = table.copy(minetest.registered_nodes["doors:door_"..mat.."_b"])
|
||||
def.groups.handy = 1
|
||||
def._mcl_hardness=0.6
|
||||
def.mesh = "homedecor_3d_door_"..mat.."_b.obj"
|
||||
minetest.register_node(":doors:door_"..mat.."_b", def)
|
||||
end
|
||||
|
||||
for _,mat in ipairs({"", "_steel"}) do
|
||||
def = table.copy(minetest.registered_nodes["doors:trapdoor"..mat])
|
||||
def.groups.handy = 1
|
||||
def._mcl_hardness=0.6
|
||||
def.drawtype = "mesh"
|
||||
def.mesh = "homedecor_3d_trapdoor"..mat..".obj"
|
||||
def.tiles = {
|
||||
@ -113,6 +119,8 @@ if minetest.get_modpath("doors") then
|
||||
minetest.register_node(":doors:trapdoor"..mat, def)
|
||||
|
||||
def = table.copy(minetest.registered_nodes["doors:trapdoor"..mat.."_open"])
|
||||
def.groups.handy = 1
|
||||
def._mcl_hardness=0.6
|
||||
def.mesh = "homedecor_3d_trapdoor"..mat.."_open.obj"
|
||||
def.drawtype = "mesh"
|
||||
def.tiles = {
|
||||
|
Reference in New Issue
Block a user