Skip to content

Commit

Permalink
it wasn't :(
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlseraid committed Nov 1, 2024
1 parent d683c39 commit c5f02e0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ object ItemPickupLog {

private val config get() = SkyHanniMod.feature.inventory.itemPickupLogConfig
private val coinIcon = "COIN_TALISMAN".toInternalName()
private val HAY_BALE = "HAY_BALE".toInternalName()
private val HAY_BLOCK = "HAY_BLOCK".toInternalName()

private var itemList = mutableMapOf<Int, Pair<ItemStack, Int>>()
private var itemsAddedToInventory = mutableMapOf<Int, PickupEntry>()
Expand Down Expand Up @@ -124,7 +126,7 @@ object ItemPickupLog {
event.sackChanges.forEach {

// TODO this should not need to be done here but the whole internal name resolving needs a rework and this fixes it for now
val internalName = if (it.internalName == "HAY_BALE".toInternalName()) "HAY_BLOCK".toInternalName() else it.internalName
val internalName = if (it.internalName == HAY_BALE) HAY_BLOCK else it.internalName
val itemStack = internalName.getItemStack()

val item = PickupEntry(itemStack.dynamicName(), it.delta.absoluteValue.toLong(), it.internalName)
Expand Down

0 comments on commit c5f02e0

Please sign in to comment.