mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2025-08-17 15:20:21 +02:00
Don't starve in creative to prevent crash
This commit is contained in:
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)
|
||||||
|
Reference in New Issue
Block a user