add logging pr ssx suggestion

This commit is contained in:
unknown 2022-05-01 21:30:02 -04:00
parent ee77cf7775
commit fc84785ef4
2 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,12 @@
-- Node definitions for Homedecor doors
if not minetest.get_modpath("doors") or not minetest.get_modpath("default") then return end
if not minetest.get_modpath("doors") or not minetest.get_modpath("default") then
minetest.log(
"action",
"[homedecor_doors_and_gates]: minetest game not detected, disabling as this mod is minetest game only at this time"
)
return
end
local S = minetest.get_translator("homedecor_doors_and_gates")
local mesecons_mp = minetest.get_modpath("mesecons")

View File

@ -1,4 +1,10 @@
if not minetest.get_modpath("player_api") then return end
if not minetest.get_modpath("player_api") then
minetest.log(
"action",
"[homedecor_wardrobe]: minetest game not detected, disabling as this mod is minetest game only at this time"
)
return
end
local S = minetest.get_translator("homedecor_wardrobe")
local modpath = minetest.get_modpath("homedecor_wardrobe")