Prevent sprinting if hunger level <= 6

This commit is contained in:
Wuzzy 2017-02-21 16:44:26 +01:00
parent 2e7ce77985
commit d36beaf64f
5 changed files with 13 additions and 10 deletions

View file

@ -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")