mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2025-01-03 11:07:29 +01:00
Optimize mod check
This commit is contained in:
parent
d3254916c2
commit
0aa19f99c5
9
init.lua
9
init.lua
@ -22,13 +22,10 @@ local sprint_timer_step = 0.5
|
|||||||
local sprint_timer = 0
|
local sprint_timer = 0
|
||||||
local stamina_timer = 0
|
local stamina_timer = 0
|
||||||
local breath_timer = 0
|
local breath_timer = 0
|
||||||
local hudbars = false
|
|
||||||
local starve = false
|
|
||||||
local monoids = false
|
|
||||||
|
|
||||||
if minetest.get_modpath("hudbars") ~= nil then hudbars = true else hudbars = false end
|
local hudbars = minetest.get_modpath("hudbars") or false
|
||||||
if minetest.get_modpath("hbhunger") ~= nil then starve = true else starve = false end
|
local starve = minetest.get_modpath("hbhunger") or false
|
||||||
if minetest.get_modpath("player_monoids") ~= nil then monoids = true else monoids = false end
|
local monoids = minetest.get_modpath("player_monoids") or false
|
||||||
|
|
||||||
-- Functions
|
-- Functions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user