Don't dupe mounts.

This commit is contained in:
Brianna 2019-10-08 02:15:28 -04:00
parent 2fe1d506b7
commit 73c5ec1efd
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,13 @@ public class BossDamageListener implements Listener {
BossEntity bossEntity = bossesFileManager.getBossEntity(name);
bossEntityManager.createActiveBossHolder(bossEntity, livingEntity.getLocation(), name, null);
if (livingEntity.isInsideVehicle() && livingEntity.getVehicle() != null)
livingEntity.getVehicle().remove();
if (livingEntity.getPassenger() != null)
livingEntity.getPassenger().remove();
livingEntity.remove();
}
return;