aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-11 00:25:15 +0200
committernea <nea@nea.moe>2023-06-11 00:25:15 +0200
commit2df2ee1f18a26755e6fc4d9f1752338aa48cd3e9 (patch)
treef6d80df0e1eefc3457b5058cdabbc6941d7848fd /src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt
parenteb8d82067c0959db0bf01cc7a832e0acac9d2e63 (diff)
downloadfirmament-2df2ee1f18a26755e6fc4d9f1752338aa48cd3e9.tar.gz
firmament-2df2ee1f18a26755e6fc4d9f1752338aa48cd3e9.tar.bz2
firmament-2df2ee1f18a26755e6fc4d9f1752338aa48cd3e9.zip
Remove vanilla items from the item list
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt b/src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt
index 8b8383a..def73fe 100644
--- a/src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt
+++ b/src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt
@@ -83,9 +83,9 @@ class FirmamentReiPlugin : REIClientPlugin {
}
override fun registerEntries(registry: EntryRegistry) {
- RepoManager.neuRepo.items?.items?.values?.forEach {
- if (!it.isVanilla)
- registry.addEntry(SBItemEntryDefinition.getEntry(it.skyblockId))
+ registry.removeEntryIf { true }
+ RepoManager.neuRepo.items?.items?.values?.forEach { neuItem ->
+ registry.addEntry(SBItemEntryDefinition.getEntry(neuItem.skyblockId))
}
}
}