mirror of
https://github.com/MinetestForFun/mff_hud.git
synced 2024-12-22 16:50:34 +01:00
Merge pull request #1 from Panquesito7/master
Replace deprecated functions with newer ones
This commit is contained in:
commit
ad3d984c7a
6
init.lua
6
init.lua
@ -1,6 +1,6 @@
|
|||||||
local hotbar_size = minetest.setting_get("hotbar_size") or 16
|
local hotbar_size = minetest.settings:get("hotbar_size") or 16
|
||||||
local health_visible = minetest.setting_getbool("hotbar_health_visible") or false
|
local health_visible = minetest.settings:get_bool("hotbar_health_visible") or false
|
||||||
local minimap_visible = minetest.setting_getbool("enable_minimap") or false
|
local minimap_visible = minetest.settings:get_bool("enable_minimap") or false
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
player:hud_set_hotbar_itemcount(hotbar_size)
|
player:hud_set_hotbar_itemcount(hotbar_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user