Don't drain hunger for players with fast privilege (#29)

This commit is contained in:
auouymous 2020-10-16 10:53:15 -07:00 committed by GitHub
parent 899d246832
commit 1fe580a210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ local function sprint_step(player, dtime)
if (player_stamina > 0 and hunger > starve_limit and ground) or fast then
start_sprint(player)
if stamina and not fast then drain_stamina(player) end
if starve then drain_hunger(player, name) end
if starve and not fast then drain_hunger(player, name) end
if breath and not fast and breath_timer[name] >= 2 then
drain_breath(player)
breath_timer[name] = 0