Don't respawn the horse if the player no longer has the perk

This commit is contained in:
Spencer 2017-12-28 19:43:40 -05:00 committed by Alexander Meech
parent 90b129dd64
commit 6ce5c577b8
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public class PerkHorsePet extends Perk
{ {
Player player = respawnIterator.next(); Player player = respawnIterator.next();
if (UtilTime.elapsed(_deathTime.get(player), 15000)) if (UtilTime.elapsed(_deathTime.get(player), 15000) && hasPerk(player))
{ {
respawnIterator.remove(); respawnIterator.remove();
spawnHorse(player, true); spawnHorse(player, true);