Delay armor display to allow for lag.

This commit is contained in:
Duane 2016-07-15 19:20:39 -05:00
parent de4d2b7b52
commit 39a38703a8

View file

@ -383,7 +383,7 @@ minetest.register_on_joinplayer(function(player)
armor.fleshy = math.min(100, math.max(1, math.ceil(armor.fleshy * factor))) armor.fleshy = math.min(100, math.max(1, math.ceil(armor.fleshy * factor)))
player:set_armor_groups(armor) player:set_armor_groups(armor)
if fun_caves.display_armor then if fun_caves.display_armor then
minetest.after(1, function() minetest.after(3, function()
fun_caves.display_armor(player) fun_caves.display_armor(player)
end) end)
end end