1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

fix some missing door LBM entries

This commit is contained in:
Vanessa Dannenberg 2019-06-05 04:26:22 -04:00
parent ea160a6519
commit bde2bf2bf6

View File

@ -730,6 +730,15 @@ minetest.register_alias("doors:bedroom_b", "doors:homedecor
-- flip old homedecor doors around, since they use minetest_game doors API now -- flip old homedecor doors around, since they use minetest_game doors API now
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_left"
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_right"
old_doors[#old_doors + 1] = "homedecor:door_woodglass2_left"
old_doors[#old_doors + 1] = "homedecor:door_woodglass2_right"
old_doors[#old_doors + 1] = "homedecor:door_bedroom_left"
old_doors[#old_doors + 1] = "homedecor:door_bedroom_right"
minetest.register_lbm({ minetest.register_lbm({
name = ":homedecor:convert_doors", name = ":homedecor:convert_doors",
label = "Convert Homedecor doors to mtg doors API", label = "Convert Homedecor doors to mtg doors API",
@ -740,7 +749,7 @@ minetest.register_lbm({
local newparam2 = (node.param2 + 2) % 4 local newparam2 = (node.param2 + 2) % 4
local e = string.find(node.name, "_", -7) local e = string.find(node.name, "_", -7)
local dir = string.sub(node.name, e+1) local dir = string.sub(node.name, e+1)
local newname = "doors:"..string.sub(node.name, 16, e-1) local newname = "doors:homedecor_"..string.sub(node.name, 16, e-1)
if dir == "right" then if dir == "right" then
minetest.set_node(pos, {name = newname.."_a", param2 = newparam2 }) minetest.set_node(pos, {name = newname.."_a", param2 = newparam2 })
else else