summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2014-03-22 19:31:25 +0000
committerCiaran Gultnieks <ciaran@ciarang.com>2014-03-22 19:31:25 +0000
commitd23d5d4cfeaf3e29a67e305d7c9b80c2a0ccfb56 (patch)
treed9c3d6f44f664452eec7348f93e15fd66b58e96a
parent09fc5ee48ae2a9adc7752e8521302b3263573436 (diff)
More reliable food overrides
Use reliable optional dependencies instead of a 0.5 second delay.
-rw-r--r--depends.txt12
-rw-r--r--hunger.lua2
2 files changed, 11 insertions, 3 deletions
diff --git a/depends.txt b/depends.txt
index 331d858..7bc96ce 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1 +1,11 @@
-default \ No newline at end of file
+default
+mobs?
+moretrees?
+dwarves?
+animalmaterials?
+fishing?
+glooptest?
+bushes?
+docfarming?
+farmingplus?
+mtfoods?
diff --git a/hunger.lua b/hunger.lua
index 106fe6c..28ca010 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -54,7 +54,6 @@ local function overwrite(name, hunger_change, replace_with_item, poisen)
minetest.registered_items[name] = tab
end
-minetest.after(0.5, function()--ensure all other mods get loaded
overwrite("default:apple", 2)
if minetest.get_modpath("farming") ~= nil then
overwrite("farming:bread", 4)
@@ -164,4 +163,3 @@ if minetest.get_modpath("mtfoods") ~= nil then
overwrite("mtfoods:apple_cider", 2)
overwrite("mtfoods:cider_rack", 2)
end
-end)