mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2024-08-19 20:44:10 +02: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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user