Update hud mod (version 2.1.5)

master
BlockMen 2016-02-15 14:23:23 +01:00
parent d1f9d097b1
commit 78e2e811d6
4 changed files with 54 additions and 49 deletions

View File

@ -1,8 +1,8 @@
Modpack "Better HUD and hunger"
===============================
ModPack-Version: 2.x.0
ModPack-Version: 2.x.1
Copyright (c) 2013-2015 BlockMen <blockmen2015@gmail.com>
Copyright (c) 2013-2016 BlockMen <blockmen2015@gmail.com>
About this mod:
@ -36,7 +36,7 @@ For more information how to register more food see API.txt
License:
~~~~~~~~
(c) Copyright BlockMen (2013-2015)
(c) Copyright BlockMen (2013-2016)
Code:

View File

@ -1,8 +1,8 @@
Minetest mod "Better HUD"
=========================
Version: 2.1.4
Version: 2.1.5
(c) Copyright BlockMen (2013-2015)
(c) Copyright BlockMen (2013-2016)
About this mod:
@ -26,7 +26,7 @@ This mod supports the 3d_armor mod by stu (https://github.com/stujones11/minetes
License:
~~~~~~~~
(c) Copyright BlockMen (2013-2015)
(c) Copyright BlockMen (2013-2016)
Code:

View File

@ -1,3 +1,7 @@
2.1.5
-----
- Fixed armor not being updated correct due armor mod changes
2.1.4
-----
- Fixed unhandled exception in hud.swap_statbar()

View File

@ -4,7 +4,7 @@ end
if hud.show_armor then
local shields = minetest.get_modpath("shields") ~= nil
local armor_org_func = armor.update_armor
local armor_org_func = armor.set_player_armor
local function get_armor_lvl(def)
-- items/protection based display
@ -22,7 +22,7 @@ if hud.show_armor then
return tonumber(20 * ret)
end
function armor.update_armor(self, player)
function armor.set_player_armor(self, player)
armor_org_func(self, player)
local name = player:get_player_name()
local def = self.def
@ -55,6 +55,7 @@ if not hud.show_hunger then
function hud.save_hunger()
hud.notify_hunger(1, true)
end
function hud.load_hunger(player)
hud.notify_hunger(1, true)
end