diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-26 15:46:54 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-26 15:46:54 +0100 |
| commit | a5540841c951f2f694cf48f8dd093f69e9d36c44 (patch) | |
| tree | bfe652984b93789a98e699793baf16776acb9fdc /src/main/java/at/hannibal2/skyhanni/features/fishing | |
| parent | 69b7a4688ed84b89b21545ebb382cf8a4f57307c (diff) | |
| download | skyhanni-a5540841c951f2f694cf48f8dd093f69e9d36c44.tar.gz skyhanni-a5540841c951f2f694cf48f8dd093f69e9d36c44.tar.bz2 skyhanni-a5540841c951f2f694cf48f8dd093f69e9d36c44.zip | |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingTrackerCategoryManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingTrackerCategoryManager.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingTrackerCategoryManager.kt index 2006975ad..8c240799f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingTrackerCategoryManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/FishingTrackerCategoryManager.kt @@ -4,7 +4,7 @@ import at.hannibal2.skyhanni.data.jsonobjects.repo.FishingProfitItemsJson import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.utils.NEUInternalName import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName -import io.github.moulberry.notenoughupdates.NotEnoughUpdates +import at.hannibal2.skyhanni.utils.NEUItems import net.minecraftforge.fml.common.eventhandler.SubscribeEvent object FishingTrackerCategoryManager { @@ -28,7 +28,7 @@ object FishingTrackerCategoryManager { fun onNeuRepoReload(event: io.github.moulberry.notenoughupdates.events.RepositoryReloadEvent) { val totalDrops = mutableListOf<String>() val dropCategories = mutableMapOf<String, MutableList<NEUInternalName>>() - for ((seaCreature, data) in NotEnoughUpdates.INSTANCE.manager.itemInformation.filter { it.key.endsWith("_SC") }) { + for ((seaCreature, data) in NEUItems.allNeuRepoItems().filter { it.key.endsWith("_SC") }) { val asJsonObject = data.getAsJsonArray("recipes")[0].asJsonObject val drops = asJsonObject.getAsJsonArray("drops") .map { it.asJsonObject.get("id").asString }.map { it.split(":").first() } |
