aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-04 15:34:02 +0200
committernea <nea@nea.moe>2023-05-04 15:34:02 +0200
commitbcd86e28228d2ee35a2009d4f7e2fea55ea3c02f (patch)
tree0a6e2e8551900b5f5b3f0e178e58873a8c68a146 /src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt
parent857427b0766fe68590589c22e86dbcf1196b4ed5 (diff)
downloadFirmament-bcd86e28228d2ee35a2009d4f7e2fea55ea3c02f.tar.gz
Firmament-bcd86e28228d2ee35a2009d4f7e2fea55ea3c02f.tar.bz2
Firmament-bcd86e28228d2ee35a2009d4f7e2fea55ea3c02f.zip
Display broken favourites
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt b/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt
index e89b007..88f7abc 100644
--- a/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt
+++ b/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt
@@ -9,6 +9,7 @@ import me.shedaniel.rei.api.common.entry.type.EntryTypeRegistry
import me.shedaniel.rei.api.common.entry.type.VanillaEntryTypes
import net.minecraft.item.ItemStack
import net.minecraft.util.Identifier
+import moe.nea.notenoughupdates.repo.ItemCache
import moe.nea.notenoughupdates.repo.ItemCache.asItemStack
import moe.nea.notenoughupdates.repo.RepoManager
@@ -17,7 +18,7 @@ class NEUReiPlugin : REIClientPlugin {
companion object {
fun EntryStack<NEUItem>.asItemEntry(): EntryStack<ItemStack> {
- return EntryStack.of(VanillaEntryTypes.ITEM, value.asItemStack())
+ return EntryStack.of(VanillaEntryTypes.ITEM, value?.asItemStack())
}
val SKYBLOCK_ITEM_TYPE_ID = Identifier("notenoughupdates", "skyblockitems")