From b020c74fad3b836bd5f54a6c20aa4f8fb301b5fb Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 16 Feb 2017 18:10:24 +0100 Subject: [PATCH] Adjust number of food particles based on food points gained --- mods/PLAYER/mcl_hunger/hunger.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_hunger/hunger.lua b/mods/PLAYER/mcl_hunger/hunger.lua index 400c76835e..89a167a113 100644 --- a/mods/PLAYER/mcl_hunger/hunger.lua +++ b/mods/PLAYER/mcl_hunger/hunger.lua @@ -106,7 +106,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisen, heal, sou local maxvel = vector.add(v, {x=1, y=2, z=1}) minetest.add_particlespawner({ - amount = 20, + amount = math.min(math.max(8, hunger_change*2), 25), time = 0.1, minpos = {x=pos.x, y=pos.y, z=pos.z}, maxpos = {x=pos.x, y=pos.y, z=pos.z},