From c544da116111c176c464aaf630463188bf46fe25 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 24 Mar 2014 13:11:54 +0000 Subject: [PATCH] Add support for mushroom mod food/poison --- depends.txt | 1 + hunger.lua | 5 +++++ 2 files changed, 6 insertions(+) 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)