mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-02-16 18:54:58 +01:00
Fix mobs spawn with 0 health if mob_difficulty=0
This commit is contained in:
parent
0e733f1677
commit
c6903b48f1
1 changed files with 1 additions and 1 deletions
|
@ -3118,7 +3118,7 @@ local function scale_difficulty(value, default, min, special)
|
||||||
if (not value) or (value == default) or (value == special) then
|
if (not value) or (value == default) or (value == special) then
|
||||||
return default
|
return default
|
||||||
else
|
else
|
||||||
return max(min, value) * difficulty
|
return max(min, value * difficulty)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue