mirror of
https://github.com/songoda/EpicBosses.git
synced 2024-09-27 21:12:42 +02: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);
|
BossEntity bossEntity = bossesFileManager.getBossEntity(name);
|
||||||
bossEntityManager.createActiveBossHolder(bossEntity, livingEntity.getLocation(), name, null);
|
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();
|
livingEntity.remove();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user