[hbarmor] Update to Git patch d1168bb:
https://github.com/AntumDeluge/mtmod-hbarmor/tree/d1168bb
This commit is contained in:
parent
35edc6c42e
commit
a52c3c5415
@ -103,7 +103,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
* [hovercraft][] ([LGPL / CC BY-SA / CC0][lic.hovercraft]) -- version: [4d50e68 Git][ver.hovercraft] *2017-05-14* ([patched][patch.hovercraft])
|
||||
* ui/
|
||||
* [bookmarks_gui][] ([BSD 3-Clause][lic.bookmarks_gui]) -- version: [d369dba Git][ver.bookmarks_gui] *2015-08-14*
|
||||
* [hbarmor][] ([WTFPL][lic.wtfpl] / [CC BY-SA][lic.ccbysa3.0]) -- version: [0.3.0 (bfc5f8c Git)][ver.hbarmor] *2017-03-07*
|
||||
* [hbarmor][] ([WTFPL][lic.wtfpl] / [CC BY-SA][lic.ccbysa3.0]) -- version: [0.3.0 (bfc5f8c Git)][ver.hbarmor] *2017-03-07* ([patched][patch.hbarmor])
|
||||
* [home_gui][] ([BSD 3-Clause](mods/ui/home_gui/LICENSE)) -- version: [f6b5001 Git][ver.home_gui] *2015-08-14*
|
||||
* [hudbars][] ([WTFPL][lic.wtfpl] / [CC BY-SA][lic.ccbysa3.0]) -- version [1.8.0 (bd0641a Git)][ver.hudbars] *2017-05-29* ([patched][patch.hudbars])
|
||||
* [hudmap][] ([LGPL][lic.lgpl2.1] / [WTFPL][lic.wtfpl]) -- version: [09d40f3 Git][ver.hudmap] *2014-08-15*
|
||||
@ -517,6 +517,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
[patch.drawers]: https://github.com/AntumDeluge/mtmod-drawers/tree/3887c5b
|
||||
[patch.ethereal]: https://github.com/AntumDeluge/mtmod-ethereal/tree/9f50d6e
|
||||
[patch.farming_plus]: https://github.com/AntumDeluge/mtmod-farming_plus/tree/454a443
|
||||
[patch.hbarmor]: https://github.com/AntumDeluge/mtmod-hbarmor/tree/d1168bb
|
||||
[patch.helicopter]: https://github.com/AntumDeluge/mtmod-helicopter/tree/dd53fdd
|
||||
[patch.hovercraft]: https://github.com/AntumDeluge/mtmod-hovercraft/tree/73a6223
|
||||
[patch.hud]: https://github.com/AntumDeluge/mtmod-hud/tree/6846e20
|
||||
|
@ -25,12 +25,12 @@ hbarmor.tick = 0.1
|
||||
hbarmor.autohide = true
|
||||
|
||||
--load custom settings
|
||||
local set = minetest.setting_getbool("hbarmor_autohide")
|
||||
local set = minetest.settings:get_bool("hbarmor_autohide")
|
||||
if set ~= nil then
|
||||
hbarmor.autohide = set
|
||||
end
|
||||
|
||||
set = minetest.setting_get("hbarmor_tick")
|
||||
set = minetest.settings:get("hbarmor_tick")
|
||||
if tonumber(set) ~= nil then
|
||||
hbarmor.tick = tonumber(set)
|
||||
end
|
||||
@ -47,7 +47,7 @@ end
|
||||
local function custom_hud(player)
|
||||
local name = player:get_player_name()
|
||||
|
||||
if minetest.setting_getbool("enable_damage") then
|
||||
if minetest.settings:get_bool("enable_damage") then
|
||||
local ret = hbarmor.get_armor(player)
|
||||
if ret == false then
|
||||
minetest.log("error", "[hbarmor] Call to hbarmor.get_armor in custom_hud returned with false!")
|
||||
@ -135,7 +135,7 @@ minetest.register_globalstep(function(dtime)
|
||||
main_timer = main_timer + dtime
|
||||
timer = timer + dtime
|
||||
if main_timer > hbarmor.tick or timer > 4 then
|
||||
if minetest.setting_getbool("enable_damage") then
|
||||
if minetest.settings:get_bool("enable_damage") then
|
||||
if main_timer > hbarmor.tick then main_timer = 0 end
|
||||
for _,player in ipairs(minetest.get_connected_players()) do
|
||||
local name = player:get_player_name()
|
||||
|
Loading…
x
Reference in New Issue
Block a user