mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-25 18:48:54 +01:00
Remove unused boss damage method.
This commit is contained in:
parent
09d9605bb2
commit
f9a1e6e123
@ -497,10 +497,6 @@ public class ArenaListener
|
|||||||
else if (damagee instanceof Snowman && event.getCause() == DamageCause.MELTING) {
|
else if (damagee instanceof Snowman && event.getCause() == DamageCause.MELTING) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
// Boss
|
|
||||||
else if (monsters.getBossMonsters().contains(damagee)) {
|
|
||||||
onBossDamage(event, (LivingEntity) damagee, damager); // Now an emtpy method
|
|
||||||
}
|
|
||||||
// Regular monster
|
// Regular monster
|
||||||
else if (monsters.getMonsters().contains(damagee)) {
|
else if (monsters.getMonsters().contains(damagee)) {
|
||||||
onMonsterDamage(event, damagee, damager);
|
onMonsterDamage(event, damagee, damager);
|
||||||
@ -575,10 +571,6 @@ public class ArenaListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onBossDamage(EntityDamageEvent event, LivingEntity monster, Entity damager) {
|
|
||||||
//TODO useless method as of Entity Max Health API, maybe add in some stat tracking for leaderboards instead?
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onEntityCombust(EntityCombustEvent event) {
|
public void onEntityCombust(EntityCombustEvent event) {
|
||||||
if (monsters.getMonsters().contains(event.getEntity())) {
|
if (monsters.getMonsters().contains(event.getEntity())) {
|
||||||
if (event instanceof EntityCombustByBlockEvent || event instanceof EntityCombustByEntityEvent) {
|
if (event instanceof EntityCombustByBlockEvent || event instanceof EntityCombustByEntityEvent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user