mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 11:30:03 -04:00
Change the registered name of the bed
Can register the bed from the other mods.
This commit is contained in:
parent
fe3c5a7090
commit
7cfd8a77e4
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
function beds.register_bed(name, def)
|
function beds.register_bed(name, def)
|
||||||
minetest.register_node(name .. "_bottom", {
|
minetest.register_node(":" .. name .. "_bottom", {
|
||||||
description = def.description,
|
description = def.description,
|
||||||
inventory_image = def.inventory_image,
|
inventory_image = def.inventory_image,
|
||||||
wield_image = def.wield_image,
|
wield_image = def.wield_image,
|
||||||
|
@ -51,7 +51,7 @@ function beds.register_bed(name, def)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node(name .. "_top", {
|
minetest.register_node(":" .. name .. "_top", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = def.tiles.top,
|
tiles = def.tiles.top,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
|
Loading…
Add table
Reference in a new issue