Skip to content
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

Open
wants to merge 7 commits into
base: beta
Choose a base branch
from

Conversation

catgirlseraid
Copy link
Contributor

@catgirlseraid catgirlseraid commented Nov 1, 2024

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

  • Fixed itempickuplog hay bale resolving to the wrong item when being moved from sacks. - phoebe

@github-actions github-actions bot added the Bug Fix Bug fixes label Nov 1, 2024
Copy link
Contributor

@ItsEmpa ItsEmpa left a 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

@qtlunya
Copy link
Contributor

qtlunya commented Nov 1, 2024

This bug also affects /gfs, so maybe it can be done somewhere in the code where it affects sacks in general?

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants