From 3ebe3e80b929b03ad0bcb0c76cec6b3285fe08bd Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 18 May 2023 01:07:35 +0200 Subject: Make recipes with higher stack counts properly display --- src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt') diff --git a/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt b/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt index ac880b5..b1091fc 100644 --- a/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt +++ b/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt @@ -4,6 +4,7 @@ import io.github.cottonmc.cotton.gui.client.CottonHud import io.github.moulberry.repo.NEURecipeCache import io.github.moulberry.repo.NEURepository import io.github.moulberry.repo.NEURepositoryException +import io.github.moulberry.repo.data.NEUItem import io.github.moulberry.repo.data.NEURecipe import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents import kotlinx.coroutines.launch @@ -65,7 +66,7 @@ object RepoManager : DataHolder(serializer(), "repo", ::Conf }) } - fun getNEUItem(skyblockId: SkyblockId) = neuRepo.items.getItemBySkyblockId(skyblockId.neuItem) + fun getNEUItem(skyblockId: SkyblockId): NEUItem? = neuRepo.items.getItemBySkyblockId(skyblockId.neuItem) fun launchAsyncUpdate(force: Boolean = false) { Firmament.coroutineScope.launch { -- cgit