diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonBlaze.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonBlaze.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonBlaze.java index a4b920de..f473a02f 100644 --- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonBlaze.java +++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonBlaze.java @@ -53,13 +53,8 @@ public class DungeonBlaze { } } - // Order the blazes in the list from highest health to lowest health - Collections.sort(blazes, new Comparator<>() { - @Override - public int compare(ObjectIntPair<Entity> o1, ObjectIntPair<Entity> o2) { - return -Integer.compare(o1.rightInt(), o2.rightInt()); - } - }); + // Order the blazes in the list from highest health to lowest health + Collections.sort(blazes, Comparator.comparingInt(p -> -p.rightInt())); // Ensure that there are blazes in the list if (blazes.size() >= 1) { |