Skip to content

Commit

Permalink
#383 Fix new player hunger (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 authored Apr 17, 2022
1 parent 5557a1c commit ddf10a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/_various/hud_modpack/hbhunger/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ hbhunger.get_hunger_raw = function(player)
if not inv then return nil end
local hgp = inv:get_stack("hunger", 1):get_count()
if hgp == 0 then
hgp = 21
hgp = 30
inv:set_stack("hunger", 1, ItemStack({name=":", count=hgp}))
else
hgp = hgp
end
return hgp-1
return hgp
end

hbhunger.set_hunger_raw = function(player)
Expand Down

0 comments on commit ddf10a6

Please sign in to comment.