Remove vanilla items from the item list

This commit is contained in:
nea
2023-06-11 00:25:15 +02:00
parent eb8d82067c
commit 2df2ee1f18
2 changed files with 3 additions and 4 deletions

View File

@@ -138,7 +138,6 @@ fun firmamentCommand() = literal("firmament") {
source.sendFeedback(Text.translatable("firmament.sbinfo.mode", locrawInfo.mode))
source.sendFeedback(Text.translatable("firmament.sbinfo.map", locrawInfo.map))
}
}
}
}

View File

@@ -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))
}
}
}