1
0
Fork 0

Do not allow negative hunger

objects
Wuzzy 2017-05-20 20:40:22 +02:00
parent c328a9b1bc
commit 690e81c0fe
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ function mcl_hunger.exhaust(playername, increase)
satuchanged = true
elseif mcl_hunger.saturation[playername] < 0.0001 then
h = mcl_hunger.get_hunger_raw(player)
h = h-1
h = math.max(h-1, 0)
mcl_hunger.hunger[playername] = h
mcl_hunger.set_hunger_raw(player)
satuchanged = true