summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2014-03-24 13:11:54 +0000
committerCiaran Gultnieks <ciaran@ciarang.com>2014-03-24 13:11:54 +0000
commitc544da116111c176c464aaf630463188bf46fe25 (patch)
treeda36e2b04e95030805b1b69bef59dcf33aceb96c
parent4eff5b785027801cf121a250519803be62def8d2 (diff)
Add support for mushroom mod food/poison
-rw-r--r--depends.txt1
-rw-r--r--hunger.lua5
2 files changed, 6 insertions, 0 deletions
diff --git a/depends.txt b/depends.txt
index 7d8d136..744d7a4 100644
--- a/depends.txt
+++ b/depends.txt
@@ -10,3 +10,4 @@ docfarming?
farmingplus?
mtfoods?
bushes_classic?
+mushroom?
diff --git a/hunger.lua b/hunger.lua
index 30e7a21..f1cfb39 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -135,6 +135,11 @@ if minetest.get_modpath("bushes_classic") then
end
end
+if minetest.get_modpath("mushroom") ~= nil then
+ overwrite("mushroom:brown", 1)
+ overwrite("mushroom:red", 1, "", 3)
+end
+
if minetest.get_modpath("docfarming") ~= nil then
overwrite("docfarming:carrot", 2)
overwrite("docfarming:cucumber", 2)