aboutsummaryrefslogtreecommitdiff
path: root/src/compat/rei/java/moe/nea
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-31 17:51:29 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-31 17:51:29 +0100
commitbb124fe91d310d08fbf17ea8972d9e7b8b89b319 (patch)
treee392cc41284d06cdcd78eb073ee8212d620ee757 /src/compat/rei/java/moe/nea
parenta50de1601873d5c750c88bef9468b24fdd923ef0 (diff)
downloadFirmament-bb124fe91d310d08fbf17ea8972d9e7b8b89b319.tar.gz
Firmament-bb124fe91d310d08fbf17ea8972d9e7b8b89b319.tar.bz2
Firmament-bb124fe91d310d08fbf17ea8972d9e7b8b89b319.zip
fix: Dungeon swords not being recognized for reforges
Diffstat (limited to 'src/compat/rei/java/moe/nea')
-rw-r--r--src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBReforgeRecipe.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBReforgeRecipe.kt b/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBReforgeRecipe.kt
index 9c8d8f4..4d00a4f 100644
--- a/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBReforgeRecipe.kt
+++ b/src/compat/rei/java/moe/nea/firmament/compat/rei/recipes/SBReforgeRecipe.kt
@@ -171,9 +171,10 @@ class SBReforgeRecipe(
is Reforge.ReforgeEligibilityFilter.AllowsItemType ->
ReforgeStore.resolveItemType(it.itemType)
- .flatMap {
- RepoItemTypeCache.byItemType[it] ?: listOf()
- }
+ .flatMapTo(mutableSetOf()) {
+ (RepoItemTypeCache.byItemType[it] ?: listOf()) +
+ (RepoItemTypeCache.byItemType[it.dungeonVariant] ?: listOf())
+ }.toList()
is Reforge.ReforgeEligibilityFilter.AllowsVanillaItemType -> {
listOf() // TODO: add filter support for this and potentially rework this to search for the declared item type in repo, instead of remapped item type