mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 11:53:46 +01:00
Remove duplicated armor update code
This commit is contained in:
parent
dc20267b4f
commit
df2ab1fd8c
@ -107,12 +107,6 @@ minetest.register_on_joinplayer(function(player)
|
||||
player:hud_set_hotbar_image("mcl_inventory_hotbar.png")
|
||||
player:hud_set_hotbar_selected_image("mcl_inventory_hotbar_selected.png")
|
||||
|
||||
local old_update_player = mcl_armor.update_player
|
||||
function mcl_armor.update_player(player, info)
|
||||
old_update_player(player, info)
|
||||
set_inventory(player, true)
|
||||
end
|
||||
|
||||
-- In Creative Mode, the initial inventory setup is handled in creative.lua
|
||||
if not minetest.is_creative_enabled(player:get_player_name()) then
|
||||
set_inventory(player)
|
||||
|
Loading…
Reference in New Issue
Block a user