Prevent sprinting if hunger level <= 6
This commit is contained in:
parent
2e7ce77985
commit
d36beaf64f
5 changed files with 13 additions and 10 deletions
|
@ -15,6 +15,7 @@ mcl_sprint.SPEED = 1.3
|
|||
mcl_sprint.TIMEOUT = 0.5 --Only used if mcl_sprint.METHOD = 0
|
||||
|
||||
if mcl_sprint.METHOD == 0 then
|
||||
-- UNTESTED
|
||||
dofile(minetest.get_modpath("mcl_sprint") .. "/wsprint.lua")
|
||||
elseif mcl_sprint.METHOD == 1 then
|
||||
dofile(minetest.get_modpath("mcl_sprint") .. "/esprint.lua")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue