Skip to content
Snippets Groups Projects
Commit 5091cb5e authored by paramat's avatar paramat Committed by est31
Browse files

Builtin: Change error to warning for light_source > 14

parent 679c8de6
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,9 @@ function core.register_item(name, itemdef)
}
end
if itemdef.light_source and itemdef.light_source > core.LIGHT_MAX then
error("Unable to register node: 'light_source' exceeds maximum: " .. name)
itemdef.light_source = core.LIGHT_MAX
core.log("warning", "Node 'light_source' value exceeds maximum," ..
" limiting to maximum: " ..name)
end
setmetatable(itemdef, {__index = core.nodedef_default})
core.registered_nodes[itemdef.name] = itemdef
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment