From 87e0e00c427712f08ea77097fed7fa41bdd9e869 Mon Sep 17 00:00:00 2001 From: catgirlseraid <77941535+catgirlseraid@users.noreply.github.com> Date: Fri, 1 Nov 2024 22:51:07 +1300 Subject: [PATCH] fix hay bale --- .../hannibal2/skyhanni/features/inventory/ItemPickupLog.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt index 12b3e9495d63..67b58deba318 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt @@ -122,7 +122,10 @@ object ItemPickupLog { if (!isEnabled() || !config.sack) return event.sackChanges.forEach { - val itemStack = (it.internalName.getItemStack()) + var itemStack = (it.internalName.getItemStack()) + //TODO this should not need to be done here but the whole internal name resolving needs a rework and this fixes it for now + if (it.internalName == "HAY_BALE".asInternalName()) itemStack = "HAY_BLOCK".asInternalName().getItemStack() + val item = PickupEntry(itemStack.dynamicName(), it.delta.absoluteValue.toLong(), it.internalName) updateItem(itemStack.hash(), item, itemStack, it.delta < 0)