improve warning message definition about old api vs newer one of 3d_armor

* backported commit 94de1bf2bc75071526d1a68d29bc9c4ed9da5dd0 from upstream
This commit is contained in:
mckaygerhard 2024-04-23 13:03:41 -04:00
parent d0edf57d46
commit 6ed6ce1317

View File

@ -28,8 +28,10 @@ local modarmors = minetest.get_modpath("3d_armor")
local modhbarm = minetest.get_modpath("hbarmor") local modhbarm = minetest.get_modpath("hbarmor")
local modhbhung = minetest.get_modpath("hbhunger") local modhbhung = minetest.get_modpath("hbhunger")
if (not armor) or (not armor.def) then if modarmors then
if (not armor) or (not armor.def) then
minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!") minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!")
end
end end
hb = {} hb = {}