From 6ed6ce1317fc2bc4344684d420220ea71edb9181 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Tue, 23 Apr 2024 13:03:41 -0400 Subject: [PATCH] improve warning message definition about old api vs newer one of 3d_armor * backported commit 94de1bf2bc75071526d1a68d29bc9c4ed9da5dd0 from upstream --- mods/hudbars/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/hudbars/init.lua b/mods/hudbars/init.lua index 31d84e5..c4b8b24 100644 --- a/mods/hudbars/init.lua +++ b/mods/hudbars/init.lua @@ -28,8 +28,10 @@ local modarmors = minetest.get_modpath("3d_armor") local modhbarm = minetest.get_modpath("hbarmor") local modhbhung = minetest.get_modpath("hbhunger") -if (not armor) or (not armor.def) then - minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!") +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!") + end end hb = {}