fix mod path, fix detection of doomed mod, fix missing lava mobs
* modpath current mod name getting only works well with minetest 5.X so hardcoded into code to property work in older engines * missing loading of mese monsters * detection of mobs_doomed must be at same time of dmobs, cos boths provides same mobs
This commit is contained in:
parent
b719fa7af1
commit
95f03f2abb
5
init.lua
5
init.lua
@ -1,4 +1,4 @@
|
||||
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
|
||||
local path = minetest.get_modpath("mobs_jam") .. "/"
|
||||
|
||||
-- Check for translation method
|
||||
local S
|
||||
@ -62,13 +62,14 @@ ddoo("penguin") -- D00Med
|
||||
ddoo("panda") -- AspireMint
|
||||
end
|
||||
|
||||
if not minetest.get_modpath("mobs_doomed") or not minetest.get_modpath("dmobs") then
|
||||
if not minetest.get_modpath("mobs_doomed") and not minetest.get_modpath("dmobs") then
|
||||
dofile(path .. "fox.lua") -- D00Med
|
||||
dofile(path .. "owl.lua") -- D00Med
|
||||
dofile(path .. "tortoise.lua") -- D00Med
|
||||
end
|
||||
|
||||
if not minetest.get_modpath("mobs_monster") then
|
||||
dofile(path .. "mese_monster.lua") -- PilzAdam (WTFPL)
|
||||
dofile(path .. "fire_spirit.lua") -- tenplus1
|
||||
dofile(path .. "oerkki.lua") -- Pavel_S and PilzAdam (WTFPL)
|
||||
dofile(path .. "lava_flan.lua") -- Lava Flan by Zeg9 (additional textures by JurajVajda)
|
||||
|
Loading…
Reference in New Issue
Block a user