Skip to content

Fix sneak-to-bulk-process#1787

Merged
granny merged 1 commit into
PurpurMC:ver/26.2from
kacimiamine:fix/sneak-bulk-process
Jun 19, 2026
Merged

Fix sneak-to-bulk-process#1787
granny merged 1 commit into
PurpurMC:ver/26.2from
kacimiamine:fix/sneak-bulk-process

Conversation

@kacimiamine

Copy link
Copy Markdown
Contributor

Looking at the code, addItem() uses a willRaiseLevel boolean to determine whether the composter's level should increase.

When willRaiseLevel is false, addItem() returns the original BlockState. meaning, newState == state, causing the if condition to be false.

This means sneak bulk processing only starts when the first attempt successfully raises the composter level. If the first attempt fails its compost chance, only a single item is processed instead of continuing until the composter is full.

The fix is to remove the state check, I tested it and it works as intended.

Fixes #1778

@granny granny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the PR! Looks good to me :)

@granny granny merged commit 1484e4a into PurpurMC:ver/26.2 Jun 19, 2026
@kacimiamine kacimiamine deleted the fix/sneak-bulk-process branch June 21, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sneak-to-bulk-process option does not work

2 participants