summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--depends.txt2
-rw-r--r--hunger.lua4
2 files changed, 4 insertions, 2 deletions
diff --git a/depends.txt b/depends.txt
index 117f951..4ff2b02 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1,5 +1,5 @@
hudbars
-default
+default?
animalmaterials?
bucket?
bushes?
diff --git a/hunger.lua b/hunger.lua
index f108951..191b235 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -60,7 +60,9 @@ local function overwrite(name, hunger_change, replace_with_item, poisen, heal)
minetest.registered_items[name] = tab
end
-overwrite("default:apple", 2)
+if minetest.get_modpath("default") ~= nil then
+ overwrite("default:apple", 2)
+end
if minetest.get_modpath("farming") ~= nil then
overwrite("farming:bread", 4)
end