change minetest. to core.

This commit is contained in:
tenplus1
2025-05-04 12:09:32 +01:00
parent 8480571665
commit 2d9f94f5c7
12 changed files with 125 additions and 125 deletions

View File

@ -1,8 +1,8 @@
-- translation and mod path
local S = minetest.get_translator("mobs_animal")
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
local S = core.get_translator("mobs_animal")
local path = core.get_modpath(core.get_current_modname()) .. "/"
-- Check for custom mob spawn file
@ -18,7 +18,7 @@ end
local function ddoo(mob)
if minetest.settings:get_bool("mobs_animal." .. mob) == false then
if core.settings:get_bool("mobs_animal." .. mob) == false then
print("[Mobs_Animal] " .. mob .. " disabled!")
return
end
@ -47,7 +47,7 @@ end
-- Lucky Blocks
if minetest.get_modpath("lucky_block") then
if core.get_modpath("lucky_block") then
dofile(path .. "lucky_block.lua")
end