From 95f03f2abb935959fc3f4e6c98e15ca355244c8d Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Sun, 31 Mar 2024 16:20:34 -0400 Subject: [PATCH] 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 --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 2258baa..3e3af18 100644 --- a/init.lua +++ b/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)