mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2024-12-31 09:37:28 +01:00
Lower the hunger limit
This commit is contained in:
parent
08ee8028f1
commit
e42e12df3e
2
init.lua
2
init.lua
@ -175,7 +175,7 @@ minetest.register_globalstep(function(dtime)
|
||||
if ground ~= nil then
|
||||
walkable = minetest.registered_nodes[ground.name].walkable
|
||||
end
|
||||
if player_stamina > 0 and hunger > 9 and walkable then
|
||||
if player_stamina > 0 and hunger > 6 and walkable then
|
||||
start_sprint(player)
|
||||
player:set_attribute("sprinting", "true")
|
||||
if stamina then drain_stamina(player) end
|
||||
|
Loading…
Reference in New Issue
Block a user