forked from mtcontrib/homedecor_modpack
Make registering unknown signs a warning instead of an error.
This commit is contained in:
parent
07fa9d5583
commit
7219f6cd49
@ -299,7 +299,6 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_entity(":signs:text", {
|
minetest.register_entity(":signs:text", {
|
||||||
collisionbox = { 0, 0, 0, 0, 0, 0 },
|
collisionbox = { 0, 0, 0, 0, 0, 0 },
|
||||||
visual = "upright_sprite",
|
visual = "upright_sprite",
|
||||||
@ -429,7 +428,8 @@ function homedecor.register_fence_with_sign(fencename, fencewithsignname)
|
|||||||
local def = minetest.registered_nodes[fencename]
|
local def = minetest.registered_nodes[fencename]
|
||||||
local def_sign = minetest.registered_nodes[fencewithsignname]
|
local def_sign = minetest.registered_nodes[fencewithsignname]
|
||||||
if not (def and def_sign) then
|
if not (def and def_sign) then
|
||||||
error("Attempt to register unknown node as fence")
|
minetest.log("warning", "[homedecor] Attempt to register unknown node as fence")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
def = copy(def)
|
def = copy(def)
|
||||||
def_sign = copy(def_sign)
|
def_sign = copy(def_sign)
|
||||||
|
Loading…
Reference in New Issue
Block a user