Fix armor tab not updating in Creative

This commit is contained in:
Wuzzy 2017-06-03 00:51:28 +02:00
parent 8d87ac8f0e
commit 5e0b4d749f

@ -163,9 +163,10 @@ minetest.register_on_joinplayer(function(player)
end end
armor.update_inventory = function(self, player) armor.update_inventory = function(self, player)
update_inventory_original(self, player) update_inventory_original(self, player)
set_inventory(player, true)
end end
armor:set_player_armor(player) armor:set_player_armor(player)
armor:update_inventory(player) update_inventory_original(self, player)
end end
-- In Creative Mode, the initial inventory setup is handled in creative.lua -- In Creative Mode, the initial inventory setup is handled in creative.lua