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/repo/RepoManager.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/repo/RepoManager.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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<RepoManager.Config>(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 { |