1
0

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:
mckaygerhard 2024-03-31 16:20:34 -04:00
parent b719fa7af1
commit 95f03f2abb

View File

@ -1,4 +1,4 @@
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/" local path = minetest.get_modpath("mobs_jam") .. "/"
-- Check for translation method -- Check for translation method
local S local S
@ -62,13 +62,14 @@ ddoo("penguin") -- D00Med
ddoo("panda") -- AspireMint ddoo("panda") -- AspireMint
end 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 .. "fox.lua") -- D00Med
dofile(path .. "owl.lua") -- D00Med dofile(path .. "owl.lua") -- D00Med
dofile(path .. "tortoise.lua") -- D00Med dofile(path .. "tortoise.lua") -- D00Med
end end
if not minetest.get_modpath("mobs_monster") then if not minetest.get_modpath("mobs_monster") then
dofile(path .. "mese_monster.lua") -- PilzAdam (WTFPL)
dofile(path .. "fire_spirit.lua") -- tenplus1 dofile(path .. "fire_spirit.lua") -- tenplus1
dofile(path .. "oerkki.lua") -- Pavel_S and PilzAdam (WTFPL) dofile(path .. "oerkki.lua") -- Pavel_S and PilzAdam (WTFPL)
dofile(path .. "lava_flan.lua") -- Lava Flan by Zeg9 (additional textures by JurajVajda) dofile(path .. "lava_flan.lua") -- Lava Flan by Zeg9 (additional textures by JurajVajda)