Lower the hunger limit

This commit is contained in:
tacotexmex 2018-02-25 22:15:56 +01:00
parent 08ee8028f1
commit e42e12df3e

View File

@ -175,7 +175,7 @@ minetest.register_globalstep(function(dtime)
if ground ~= nil then if ground ~= nil then
walkable = minetest.registered_nodes[ground.name].walkable walkable = minetest.registered_nodes[ground.name].walkable
end end
if player_stamina > 0 and hunger > 9 and walkable then if player_stamina > 0 and hunger > 6 and walkable then
start_sprint(player) start_sprint(player)
player:set_attribute("sprinting", "true") player:set_attribute("sprinting", "true")
if stamina then drain_stamina(player) end if stamina then drain_stamina(player) end