-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Itempickup log hay bale #2873
base: beta
Are you sure you want to change the base?
Fix: Itempickup log hay bale #2873
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requested changes. also the changelog should be formatted in a way that users can understand more or less what the fix is
src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt
Outdated
Show resolved
Hide resolved
This bug also affects I had an open PR for this but I need to get around to finishing it. I don't remember if my implementation fixed it for item pickup log. |
val 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 | ||
val internalName = if (it.internalName == HAY_BALE) HAY_BLOCK else it.internalName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code duplication of
val rawInternalName = if (it == "HAY_BALE") "HAY_BLOCK" else it |
What
hay bale (wheat) is HAY_BLOCK but hay bale (furniture) gets HAY_BALE
when internal name gets resolved from the sack pickup message it incorrectly resolves to the wrong block.
this fixes it for itempickup log for now until the internalname system is changed with the removal of neu.
this fix works since there is no way for furniture to end up in the sack change message
Changelog Fixes