Skip to content

Commit

Permalink
fix hay bale
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlseraid committed Nov 1, 2024
1 parent c84af15 commit 87e0e00
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87e0e00

Please sign in to comment.