Doors: fix unability to register doors outside of doors mod
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Sat, 13 Feb 2016 10:30:21 +0000 (11:30 +0100)
committerEkdohibs <nathanael.courant@laposte.net>
Sat, 13 Feb 2016 17:37:16 +0000 (18:37 +0100)
mods/doors/init.lua

index 2d6271e625789bcda432c2c92d240a382f3ef684..e96a7f536bab635cb0928aee0b292a18ad65c28e 100644 (file)
@@ -178,7 +178,7 @@ function doors.register(name, def)
                end
        })
 
-       minetest.register_craftitem("doors:" .. name, {
+       minetest.register_craftitem(":doors:" .. name, {
                description = def.description,
                inventory_image = def.inventory_image,
 
@@ -288,7 +288,7 @@ function doors.register(name, def)
                end
        end
 
-       minetest.register_node("doors:" .. name .. "_a", {
+       minetest.register_node(":doors:" .. name .. "_a", {
                description = def.description,
                visual = "mesh",
                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,
                visual = "mesh",
                mesh = "door_b.obj",