use globals instead of modpath
This commit is contained in:
parent
b2a4700b5e
commit
c441cda3dc
7
init.lua
7
init.lua
@ -1,9 +1,8 @@
|
|||||||
|
|
||||||
-- check for available hunger mods
|
-- check for available hunger mods
|
||||||
local hmod = minetest.get_modpath("hunger")
|
local hmod = minetest.global_exists("hunger")
|
||||||
local hbmod = minetest.get_modpath("hbhunger")
|
local hbmod = minetest.global_exists("hbhunger")
|
||||||
local stmod = minetest.get_modpath("stamina")
|
local stmod = minetest.global_exists("stamina")
|
||||||
|
|
||||||
|
|
||||||
-- eat pie slice function
|
-- eat pie slice function
|
||||||
local replace_pie = function(node, puncher, pos)
|
local replace_pie = function(node, puncher, pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user