forked from minetest-mods/hbsprint
Don't starve in creative to prevent crash
This commit is contained in:
parent
0f846c95c7
commit
7170277c38
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…
x
Reference in New Issue
Block a user