mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-03-12 14:39:05 +01:00
Don't dupe mounts.
This commit is contained in:
parent
2fe1d506b7
commit
73c5ec1efd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user