mods - hudbars - improve warning message definition about old api vs newer one of 3d_armor
* backport commit 94de1bf2bc75071526d1a68d29bc9c4ed9da5dd0 from upstream
This commit is contained in:
parent
c398a66406
commit
ab354d538d
@ -24,12 +24,14 @@ end
|
|||||||
|
|
||||||
local N = function(s) return s end
|
local N = function(s) return s end
|
||||||
|
|
||||||
local modarmors = minetest.get_modpath("3d_armor")
|
local modarmors = minetest.get_modpath("3d_armor") or false
|
||||||
local modhbarm = minetest.get_modpath("hbarmor")
|
local modhbarm = minetest.get_modpath("hbarmor") or false
|
||||||
local modhbhung = minetest.get_modpath("hbhunger")
|
local modhbhung = minetest.get_modpath("hbhunger") or false
|
||||||
|
|
||||||
if (not armor) or (not armor.def) then
|
if modarmors then
|
||||||
minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!")
|
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
|
end
|
||||||
|
|
||||||
hb = {}
|
hb = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user