diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-04-22 01:41:18 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-04-22 01:41:18 -0400 |
commit | c9c0ea6a3e3382fd236345b89bd0991c8b8cbb17 (patch) | |
tree | f4918f95bf899b43464b524288651a4856c46cc3 /src/main/java/me/Danker/features/loot/MythologicalTracker.java | |
parent | 0aef9021be5143adb5be5e624675d79868aa9738 (diff) | |
download | SkyblockMod-c9c0ea6a3e3382fd236345b89bd0991c8b8cbb17.tar.gz SkyblockMod-c9c0ea6a3e3382fd236345b89bd0991c8b8cbb17.tar.bz2 SkyblockMod-c9c0ea6a3e3382fd236345b89bd0991c8b8cbb17.zip |
Fix of inquistor not counted in tracker
Manually added from #118
Diffstat (limited to 'src/main/java/me/Danker/features/loot/MythologicalTracker.java')
-rw-r--r-- | src/main/java/me/Danker/features/loot/MythologicalTracker.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/features/loot/MythologicalTracker.java b/src/main/java/me/Danker/features/loot/MythologicalTracker.java index 1784b41..9a98466 100644 --- a/src/main/java/me/Danker/features/loot/MythologicalTracker.java +++ b/src/main/java/me/Danker/features/loot/MythologicalTracker.java @@ -2,10 +2,14 @@ package me.Danker.features.loot; import me.Danker.handlers.ConfigHandler; import me.Danker.utils.Utils; +import net.minecraft.client.Minecraft; +import net.minecraft.entity.Entity; import net.minecraft.util.StringUtils; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; +import java.util.List; + public class MythologicalTracker { public static double mythCoins; @@ -73,9 +77,19 @@ public class MythologicalTracker { gaiaConstructsSession++; ConfigHandler.writeIntConfig("mythological", "gaiaConstruct", gaiaConstructs); } else if (message.contains("a Minos Champion!")) { - minosChampions++; - minosChampionsSession++; - ConfigHandler.writeIntConfig("mythological", "minosChampion", minosChampions); + Minecraft mc = Minecraft.getMinecraft(); + List<Entity> listWorldEntity = mc.theWorld.getLoadedEntityList(); + for (Entity entity : listWorldEntity) { + if (entity.getName().contains("Minos Champion")) { + minosChampions++; + minosChampionsSession++; + ConfigHandler.writeIntConfig("mythological", "minosChampion", minosChampions); + } else if (entity.getName().contains("Minos Inquisitor")) { + minosInquisitors++; + minosInquisitorsSession++; + ConfigHandler.writeIntConfig("mythological", "minosInquisitor", minosInquisitors); + } + } } else if (message.contains("a Minos Inquisitor!")) { minosInquisitors++; minosInquisitorsSession++; |