From c6903b48f133be7fcfef9254d84b01e8c70260f2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 3 Oct 2019 12:19:54 +0200 Subject: [PATCH] Fix mobs spawn with 0 health if mob_difficulty=0 --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 5533ac085c..7c574af15d 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3118,7 +3118,7 @@ local function scale_difficulty(value, default, min, special) if (not value) or (value == default) or (value == special) then return default else - return max(min, value) * difficulty + return max(min, value * difficulty) end end