From 1992cdd75edebc5bc1149e40aff306bbcccecff0 Mon Sep 17 00:00:00 2001 From: WillConker Date: Sun, 14 Jul 2024 11:12:51 +0100 Subject: [PATCH] Buffed saturation --- mods/ITEMS/mcl_potions/functions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index a1c838814..8aba94c59 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -941,14 +941,14 @@ mcl_potions.register_effect({ name = "saturation", description = S("Saturation"), get_tt = function(factor) - return S("saturates by @1 per second", factor) + return S("saturates by @1 per second", factor*20) end, res_condition = function(object) return (not object:is_player()) -- TODO what should it do for mobs? end, on_step = function(dtime, object, factor, duration) - mcl_hunger.set_hunger(object, math.min(mcl_hunger.get_hunger(object)+dtime*factor, 20)) - mcl_hunger.saturate(object:get_player_name(), dtime*factor) + mcl_hunger.set_hunger(object, math.min(mcl_hunger.get_hunger(object)+dtime*factor*20, 20)) + mcl_hunger.saturate(object:get_player_name(), dtime*factor*40) end, particle_color = "#CEAE29", uses_factor = true,