diff options
author | nea <nea@nea.moe> | 2023-05-18 01:07:35 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-05-18 01:07:35 +0200 |
commit | 3ebe3e80b929b03ad0bcb0c76cec6b3285fe08bd (patch) | |
tree | 76ec3fb6387365320eb4805642a12d35e3ef9d65 /src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt | |
parent | 13f2b320c34abff8cbe1daa196a2e5e8f3f79188 (diff) | |
download | firmament-3ebe3e80b929b03ad0bcb0c76cec6b3285fe08bd.tar.gz firmament-3ebe3e80b929b03ad0bcb0c76cec6b3285fe08bd.tar.bz2 firmament-3ebe3e80b929b03ad0bcb0c76cec6b3285fe08bd.zip |
Make recipes with higher stack counts properly display
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt | 5 |
1 files changed, 2 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 992b104..05ea769 100644 --- a/src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt +++ b/src/main/kotlin/moe/nea/firmament/rei/FirmamentReiPlugin.kt @@ -1,6 +1,5 @@ package moe.nea.firmament.rei -import io.github.moulberry.repo.data.NEUItem import me.shedaniel.rei.api.client.plugins.REIClientPlugin import me.shedaniel.rei.api.client.registry.category.CategoryRegistry import me.shedaniel.rei.api.client.registry.display.DisplayRegistry @@ -23,7 +22,7 @@ import moe.nea.firmament.util.SkyblockId class FirmamentReiPlugin : REIClientPlugin { companion object { - fun EntryStack<NEUItem>.asItemEntry(): EntryStack<ItemStack> { + fun EntryStack<SBItemStack>.asItemEntry(): EntryStack<ItemStack> { return EntryStack.of(VanillaEntryTypes.ITEM, value.asItemStack()) } @@ -67,7 +66,7 @@ class FirmamentReiPlugin : REIClientPlugin { override fun registerEntries(registry: EntryRegistry) { RepoManager.neuRepo.items?.items?.values?.forEach { if (!it.isVanilla) - registry.addEntry(EntryStack.of(SBItemEntryDefinition, it)) + registry.addEntry(SBItemEntryDefinition.getEntry(it)) } } } |