From e9bfd2221f8b68ccbdb8a44155a8c51a54eaaec4 Mon Sep 17 00:00:00 2001
From: tchncs <tchncs@vivaldi.net>
Date: Sat, 8 Oct 2016 12:26:06 +0200
Subject: [PATCH] hunger: add mtcandy

---
 hbhunger/hunger.lua | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/hbhunger/hunger.lua b/hbhunger/hunger.lua
index ad5ec6c..bcf2488 100644
--- a/hbhunger/hunger.lua
+++ b/hbhunger/hunger.lua
@@ -387,6 +387,42 @@ if minetest.get_modpath("loud_walking") then
     overwrite("loud_walking:mushroom_steak", 5)
 end
 
+if minetest.get_modpath("mtcandy") then
+    overwrite("mtcandy:sugar_block", 4)
+    overwrite("mtcandy:caramel", 4)
+    overwrite("mtcandy:crosscandy", 4)
+    overwrite("mtcandy:candyrec_bluecyan", 4)
+    overwrite("mtcandy:candyrec_magenta", 4)
+    overwrite("mtcandy:candyrec_orange", 4)
+    overwrite("mtcandy:candyrec_yellow", 4)
+    overwrite("mtcandy:dotted_green", 4)
+    overwrite("mtcandy:dotted_red", 4)
+    overwrite("mtcandy:dotted_pink", 4)
+    overwrite("mtcandy:dotted_orange", 4)
+    overwrite("mtcandy:dotted_yellow", 4)
+    overwrite("mtcandy:peppermint", 4)
+    overwrite("mtcandy:peppermint_red", 4)
+    overwrite("mtcandy:peppermint_cyan_top", 4)
+    overwrite("mtcandy:peppermint_green_top", 4)
+    overwrite("mtcandy:peppermint_orange_top", 4)
+    overwrite("mtcandy:peppermint_magenta_top", 4)
+    overwrite("mtcandy:peppermint_yellow_top", 4)
+    overwrite("mtcandy:spiral_blue", 4)
+    overwrite("mtcandy:spiral_purple", 4)
+    overwrite("mtcandy:spiral_yellow", 4)
+    overwrite("mtcandy:striped_pink_brown", 4)
+    overwrite("mtcandy:striped_pink_white", 4)
+    overwrite("mtcandy:striped_pink_yellow", 4)
+    overwrite("mtcandy:striped_purple_green", 4)
+    overwrite("mtcandy:milk_choco", 4)
+    overwrite("mtcandy:white_choco", 4)
+    overwrite("mtcandy:orange", 4)
+    overwrite("mtcandy:pcorn_side", 4)
+    overwrite("mtcandy:daisy", 4)
+    overwrite("mtcandy:heart_candy", 4)
+    overwrite("mtcandy:emenems", 4)
+end
+
 -- player-action based hunger changes
 function hbhunger.handle_node_actions(pos, oldnode, player, ext)
 	if not player or not player:is_player() then
-- 
GitLab