Delay armor display to allow for lag.
This commit is contained in:
parent
de4d2b7b52
commit
39a38703a8
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue