mirror of
https://github.com/songoda/EpicBosses.git
synced 2024-12-23 00:17:53 +01:00
1.1.8-U2
+ Fixed issue where TopDamagerTargetHandler wasn't targeting anyone due to forgetting to flip a boolean
This commit is contained in:
parent
dd6ea71e36
commit
bcbb4edabe
@ -34,6 +34,6 @@ public class TopDamagerTargetHandler<T extends IActiveHolder> extends TargetHand
|
||||
|
||||
Map<LivingEntity, Double> sortedMap = MapUtils.get().sortByValue(nearbyDamages);
|
||||
|
||||
return sortedMap.keySet().stream().filter(livingEntity1 -> livingEntity1 != null && livingEntity1.isDead()).findFirst().orElse(null);
|
||||
return sortedMap.keySet().stream().filter(livingEntity1 -> livingEntity1 != null && !livingEntity1.isDead()).findFirst().orElse(null);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user