forked from MineClone5/MineClone5
[show_wielded_item] fix warnings
This commit is contained in:
parent
d43b2149e6
commit
3fbcacac3b
|
@ -11,7 +11,7 @@ local xp_mod = minetest.get_modpath("mcl_experience")
|
||||||
|
|
||||||
local function set_hud(player)
|
local function set_hud(player)
|
||||||
if not player:is_player() then return end
|
if not player:is_player() then return end
|
||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
-- Fixed offset in config file
|
-- Fixed offset in config file
|
||||||
local fixed = tonumber(minetest.settings:get("show_wielded_item_y_offset"))
|
local fixed = tonumber(minetest.settings:get("show_wielded_item_y_offset"))
|
||||||
local off
|
local off
|
||||||
|
@ -84,7 +84,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
wield[player_name] = wname
|
wield[player_name] = wname
|
||||||
dtimes[player_name] = 0
|
dtimes[player_name] = 0
|
||||||
|
|
||||||
if huds[player_name] then
|
if huds[player_name] then
|
||||||
|
|
||||||
local def = minetest.registered_items[wname]
|
local def = minetest.registered_items[wname]
|
||||||
local meta = wstack:get_meta()
|
local meta = wstack:get_meta()
|
||||||
|
|
Loading…
Reference in New Issue