summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2015-07-30 09:56:17 +0100
committerrubenwardy <rubenwardy@gmail.com>2015-07-30 09:56:17 +0100
commit6708667b670be15beeb6f2d61bc888730fcaa99c (patch)
tree7cabf12217d8127ff431bd4ee2905bfe5b8215d4
parent5c7cc84456e9415645ce0d288e44cded80f9d0de (diff)
Remove error (it's not needed, a warning is enough)
-rw-r--r--food/init.lua11
1 files changed, 2 insertions, 9 deletions
diff --git a/food/init.lua b/food/init.lua
index 5e2def6..ce05bdc 100644
--- a/food/init.lua
+++ b/food/init.lua
@@ -12,9 +12,7 @@ food = {
debug = false,
version = 2.3,
disable_fallbacks =
- minetest.setting_getbool("food.disable_fallbacks"),
- suppress_no_fallback_error =
- minetest.setting_getbool("food.suppress_no_fallback_error")
+ minetest.setting_getbool("food.disable_fallbacks")
}
-- Checks for external content, and adds support
@@ -95,12 +93,7 @@ function food.module(name, func, ingred)
end
if food.disable_fallbacks then
- if food.suppress_no_fallback_error then
- 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
+ print("Warning: Fallbacks are disabled, and no item for " .. name .. " registered!")
return
end