mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2024-12-22 21:32:24 +01:00
Don't starve in creative to prevent crash
This commit is contained in:
parent
f5d61f4a5b
commit
e698f06066
4
init.lua
4
init.lua
@ -31,7 +31,9 @@ elseif minetest.get_modpath("hunger_ng") then
|
|||||||
else
|
else
|
||||||
starve = false
|
starve = false
|
||||||
end
|
end
|
||||||
|
if minetest.settings:get_bool("creative_mode") then
|
||||||
|
starve = false
|
||||||
|
end
|
||||||
-- Functions
|
-- Functions
|
||||||
|
|
||||||
local function start_sprint(player)
|
local function start_sprint(player)
|
||||||
|
Loading…
Reference in New Issue
Block a user