aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/repo/RepoManager.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-24 03:58:43 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-24 23:35:29 +0100
commite16c60169bf192b79991176b5f9cee66b5b16e7d (patch)
tree8574fc28d83abe646c23dff336185a9d2ae7f637 /src/main/kotlin/repo/RepoManager.kt
parentfbab19b40f72574b7930ddd2981998b2d2845471 (diff)
downloadFirmament-e16c60169bf192b79991176b5f9cee66b5b16e7d.tar.gz
Firmament-e16c60169bf192b79991176b5f9cee66b5b16e7d.tar.bz2
Firmament-e16c60169bf192b79991176b5f9cee66b5b16e7d.zip
WIP: Reforge recipes
Diffstat (limited to 'src/main/kotlin/repo/RepoManager.kt')
-rw-r--r--src/main/kotlin/repo/RepoManager.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/kotlin/repo/RepoManager.kt b/src/main/kotlin/repo/RepoManager.kt
index 667ab73..6d9ba14 100644
--- a/src/main/kotlin/repo/RepoManager.kt
+++ b/src/main/kotlin/repo/RepoManager.kt
@@ -53,13 +53,16 @@ object RepoManager {
var recentlyFailedToUpdateItemList = false
val essenceRecipeProvider = EssenceRecipeProvider()
- val recipeCache = BetterRepoRecipeCache(essenceRecipeProvider)
+ val recipeCache = BetterRepoRecipeCache(essenceRecipeProvider, ReforgeStore)
fun makeNEURepository(path: Path): NEURepository {
return NEURepository.of(path).apply {
registerReloadListener(ItemCache)
+ registerReloadListener(RepoItemTypeCache)
registerReloadListener(ExpLadders)
registerReloadListener(ItemNameLookup)
+ registerReloadListener(ReforgeStore)
+ registerReloadListener(essenceRecipeProvider)
ReloadRegistrationEvent.publish(ReloadRegistrationEvent(this))
registerReloadListener {
if (TestUtil.isInTest) return@registerReloadListener
@@ -70,7 +73,6 @@ object RepoManager {
}
}
}
- registerReloadListener(essenceRecipeProvider)
registerReloadListener(recipeCache)
}
}