mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
fix some missing door LBM entries
This commit is contained in:
parent
ea160a6519
commit
bde2bf2bf6
@ -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
|
||||
|
||||
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({
|
||||
name = ":homedecor:convert_doors",
|
||||
label = "Convert Homedecor doors to mtg doors API",
|
||||
@ -740,7 +749,7 @@ minetest.register_lbm({
|
||||
local newparam2 = (node.param2 + 2) % 4
|
||||
local e = string.find(node.name, "_", -7)
|
||||
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
|
||||
minetest.set_node(pos, {name = newname.."_a", param2 = newparam2 })
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user