mirror of
https://github.com/rubenwardy/food.git
synced 2024-12-22 16:00:19 +01:00
Remove error (it's not needed, a warning is enough)
This commit is contained in:
parent
5c7cc84456
commit
6708667b67
@ -12,9 +12,7 @@ food = {
|
|||||||
debug = false,
|
debug = false,
|
||||||
version = 2.3,
|
version = 2.3,
|
||||||
disable_fallbacks =
|
disable_fallbacks =
|
||||||
minetest.setting_getbool("food.disable_fallbacks"),
|
minetest.setting_getbool("food.disable_fallbacks")
|
||||||
suppress_no_fallback_error =
|
|
||||||
minetest.setting_getbool("food.suppress_no_fallback_error")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Checks for external content, and adds support
|
-- Checks for external content, and adds support
|
||||||
@ -95,12 +93,7 @@ function food.module(name, func, ingred)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if food.disable_fallbacks then
|
if food.disable_fallbacks then
|
||||||
if food.suppress_no_fallback_error then
|
print("Warning: Fallbacks are disabled, and no item for " .. name .. " registered!")
|
||||||
print("Warning: Fallbacks are disabled, and no item for " .. name .. " registered!")
|
|
||||||
else
|
|
||||||
error("Food: Fallbacks are disabled, and no item for " .. name .. " registered!" ..
|
|
||||||
"\nUse setting food.suppress_no_fallback_error = true to ignore this error.")
|
|
||||||
end
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user