Merge pull request #1 from Panquesito7/master

Replace deprecated functions with newer ones
This commit is contained in:
Obani Gemini 2019-08-24 03:11:14 +02:00 committed by GitHub
commit ad3d984c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
local hotbar_size = minetest.setting_get("hotbar_size") or 16
local health_visible = minetest.setting_getbool("hotbar_health_visible") or false
local minimap_visible = minetest.setting_getbool("enable_minimap") or false
local hotbar_size = minetest.settings:get("hotbar_size") or 16
local health_visible = minetest.settings:get_bool("hotbar_health_visible") or false
local minimap_visible = minetest.settings:get_bool("enable_minimap") or false
minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_itemcount(hotbar_size)

2
mod.conf Normal file
View File

@ -0,0 +1,2 @@
name = mff_hud
depends = default