+ Fixed issue where TopDamagerTargetHandler wasn't targeting anyone due to forgetting to flip a boolean
This commit is contained in:
Charles 2019-03-03 23:33:05 +08:00
parent dd6ea71e36
commit bcbb4edabe
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -19,7 +19,7 @@
</modules>
<properties>
<plugin.version>1.1.8-U1</plugin.version>
<plugin.version>1.1.8-U2</plugin.version>
<plugin.name>EpicBosses</plugin.name>
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
<plugin.author>AMinecraftDev</plugin.author>