Update legacy code check

This commit is contained in:
Wuzzy 2016-11-12 19:42:29 +01:00
parent 71a30b5620
commit 96a796cce7

View File

@ -1,9 +1,6 @@
minetest.after(0, function()
if not armor.def then
minetest.after(2,minetest.chat_send_all,"#Better HUD: Please update your version of 3darmor")
HUD_SHOW_ARMOR = false
end
end)
if (not armor) or (not armor.def) then
minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!")
end
function hbarmor.get_armor(player)
if not player or not armor.def then
@ -32,6 +29,4 @@ function hbarmor.set_armor(player_name, ges_state, items)
end
hbarmor.armor[player_name] = math.min(lvl* (items * (100 / max_items)), 100)
end