mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
fix the japanese open door to use homedecor registration, and make it and its closed version use placeholders
This commit is contained in:
parent
7d5287cc04
commit
20f5afb624
@ -604,21 +604,18 @@ homedecor.register("door_japanese_closed", {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.0625, 0.5, 1.5, 0},
|
||||
},
|
||||
expand = { top = "air" },
|
||||
expand = { top = "placeholder" },
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
minetest.set_node(pos, {name = "homedecor:door_japanese_open", param2 = node.param2})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:door_japanese_open", {
|
||||
homedecor.register("door_japanese_open", {
|
||||
tiles = {
|
||||
"homedecor_generic_wood_luxury.png",
|
||||
"homedecor_japanese_paper.png"
|
||||
},
|
||||
drawtype = "mesh",
|
||||
mesh = "homedecor_door_japanese_open.obj",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3, not_in_creative_inventory = 1 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rotate = screwdriver.disallow,
|
||||
@ -630,6 +627,7 @@ minetest.register_node("homedecor:door_japanese_open", {
|
||||
type = "fixed",
|
||||
fixed = {-1.5, -0.5, -0.0625, -0.5, 1.5, 0},
|
||||
},
|
||||
expand = { top = "placeholder" },
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
minetest.set_node(pos, {name = "homedecor:door_japanese_closed", param2 = node.param2})
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user