mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 06:32:25 +01:00
Doors: fix unability to register doors outside of doors mod
This commit is contained in:
parent
7a3cff5529
commit
04f01bc57f
@ -178,7 +178,7 @@ function doors.register(name, def)
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("doors:" .. name, {
|
minetest.register_craftitem(":doors:" .. name, {
|
||||||
description = def.description,
|
description = def.description,
|
||||||
inventory_image = def.inventory_image,
|
inventory_image = def.inventory_image,
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ function doors.register(name, def)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("doors:" .. name .. "_a", {
|
minetest.register_node(":doors:" .. name .. "_a", {
|
||||||
description = def.description,
|
description = def.description,
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "door_a.obj",
|
mesh = "door_a.obj",
|
||||||
@ -320,7 +320,7 @@ function doors.register(name, def)
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("doors:" .. name .. "_b", {
|
minetest.register_node(":doors:" .. name .. "_b", {
|
||||||
description = def.description,
|
description = def.description,
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "door_b.obj",
|
mesh = "door_b.obj",
|
||||||
|
Loading…
Reference in New Issue
Block a user