diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-08 22:02:10 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-08 22:02:10 +0100 |
commit | 0e1ddd2c913656a631e26dd0c560f25179a7dc2d (patch) | |
tree | 4b4ed01165aa51c23115333dec20075473f4e8c6 /src/main/kotlin/repo/SBItemStack.kt | |
parent | f6f8fef556e74f24187ad2a6296f573024a378b3 (diff) | |
download | Firmament-0e1ddd2c913656a631e26dd0c560f25179a7dc2d.tar.gz Firmament-0e1ddd2c913656a631e26dd0c560f25179a7dc2d.tar.bz2 Firmament-0e1ddd2c913656a631e26dd0c560f25179a7dc2d.zip |
Fix missing tags in REI renderingupdate
Diffstat (limited to 'src/main/kotlin/repo/SBItemStack.kt')
-rw-r--r-- | src/main/kotlin/repo/SBItemStack.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/repo/SBItemStack.kt b/src/main/kotlin/repo/SBItemStack.kt index e1cbdbb..18126ee 100644 --- a/src/main/kotlin/repo/SBItemStack.kt +++ b/src/main/kotlin/repo/SBItemStack.kt @@ -58,6 +58,7 @@ data class SBItemStack constructor( SBItemStack(id, count) } } + val EMPTY = SBItemStack(SkyblockId.NULL, 0) operator fun invoke(itemStack: ItemStack): SBItemStack { val skyblockId = itemStack.skyBlockId ?: SkyblockId.NULL @@ -133,6 +134,8 @@ data class SBItemStack constructor( val itemStack = itemStack_ ?: run { if (skyblockId == SkyblockId.COINS) return@run ItemCache.coinItem(stackSize).also { it.appendLore(extraLore) } + if (stackSize == 0) + return@run ItemStack.EMPTY val replacementData = mutableMapOf<String, String>() injectReplacementDataForPets(replacementData) return@run neuItem.asItemStack(idHint = skyblockId, replacementData) |