Skip to content

Commit

Permalink
Fix Minos Champions counting twice
Browse files Browse the repository at this point in the history
  • Loading branch information
bowser0000 committed Jan 19, 2024
1 parent 9b10b3e commit bfd6c46
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/main/java/me/Danker/features/loot/MythologicalTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,9 @@ public void onChat(ClientChatReceivedEvent event) {
gaiaConstructsSession++;
CfgConfig.writeIntConfig("mythological", "gaiaConstruct", gaiaConstructs);
} else if (message.contains("a Minos Champion!")) {
Minecraft mc = Minecraft.getMinecraft();
List<Entity> listWorldEntity = mc.theWorld.getLoadedEntityList();
for (Entity entity : listWorldEntity) {
if (entity.getName().contains("Minos Champion")) {
minosChampions++;
minosChampionsSession++;
CfgConfig.writeIntConfig("mythological", "minosChampion", minosChampions);
} else if (entity.getName().contains("Minos Inquisitor")) {
minosInquisitors++;
minosInquisitorsSession++;
CfgConfig.writeIntConfig("mythological", "minosInquisitor", minosInquisitors);
}
}
minosChampions++;
minosChampionsSession++;
CfgConfig.writeIntConfig("mythological", "minosChampion", minosChampions);
} else if (message.contains("a Minos Inquisitor!")) {
minosInquisitors++;
minosInquisitorsSession++;
Expand Down

0 comments on commit bfd6c46

Please sign in to comment.