forked from VoxeLibre/VoxeLibre
Don't decrease hunger if saturation down from < 1
This commit is contained in:
parent
5252409326
commit
22b8ba6440
|
@ -150,8 +150,7 @@ function mcl_hunger.exhaust(playername, increase)
|
|||
if mcl_hunger.saturation[playername] > 0.0 then
|
||||
mcl_hunger.saturation[playername] = math.max(mcl_hunger.saturation[playername] - 1.0, 0.0)
|
||||
satuchanged = true
|
||||
end
|
||||
if mcl_hunger.saturation[playername] < 0.0001 then
|
||||
elseif mcl_hunger.saturation[playername] < 0.0001 then
|
||||
h = mcl_hunger.get_hunger_raw(player)
|
||||
h = h-1
|
||||
mcl_hunger.hunger[playername] = h
|
||||
|
|
Loading…
Reference in New Issue