Don't respawn the horse if the player no longer has the perk
This commit is contained in:
parent
90b129dd64
commit
6ce5c577b8
|
@ -114,7 +114,7 @@ public class PerkHorsePet extends Perk
|
|||
{
|
||||
Player player = respawnIterator.next();
|
||||
|
||||
if (UtilTime.elapsed(_deathTime.get(player), 15000))
|
||||
if (UtilTime.elapsed(_deathTime.get(player), 15000) && hasPerk(player))
|
||||
{
|
||||
respawnIterator.remove();
|
||||
spawnHorse(player, true);
|
||||
|
|
Loading…
Reference in New Issue