Refactor/input helper improvements - #128
Open
0xar-ds wants to merge 26 commits into
Open
Conversation
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
shadowJar was deprecated Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
otherwise we have issues with holders initialization Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
…x computational logic Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
…context Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
…g path Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
Signed-off-by: 0xar-ds <sadden-rope-sleek@duck.com>
0xar-ds
force-pushed
the
refactor/input-helper-improvements
branch
from
September 6, 2026 01:52
8779aba to
a1aba4a
Compare
Owner
Good plan. |
The chest closing is the same server-side transition that opens the sign, so clearing the queue on ContainerCloseEvent races the very sign open it exists to serve. It usually loses that race harmlessly — SkyblockAPI posts the event a tick behind the clientbound close packet, which lands it after the open-sign packet handler in the same task drain — but nothing guarantees the two packets arrive in one drain, and when they don't the sign silently goes unfilled. Each handler now carries a deadline and is skipped once past it, which bounds a handler waiting on a sign that never opens without depending on packet ordering. Claiming the sign with CONSUMED now also discards the rest of the queue, which is what runOnNextSignOpen already documented and what the close-clear had been doing incidentally. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014iXqZFi27zfBERVHkLAjuj
WorkingValue cached whatever resolveInput returned, including the -1 that getPriceForPosition yields when the bazaar reply has not landed yet. That froze the button on -1 for the rest of the container load and typed it into the sign; before memoization every render recomputed, so a transient miss healed itself. resolveInput now reports failure as an empty Optional and WorkingValue caches only a value that resolved, so a later render retries. A helper with no market data renders a blank stack size rather than -1, and clicking it no longer opens a sign it cannot fill. computeMaxValue returns OptionalInt for the same reason: BuyOrderAmountHelper divided the purse by that -1, and by a price of 0 it would have typed Integer.MAX_VALUE. getPriceForPositionOptional carries the distinction; getPriceForPosition keeps its -1 sentinel for the callers that only display a price. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014iXqZFi27zfBERVHkLAjuj
mkram17
approved these changes
Sep 6, 2026
…er-improvements # Conflicts: # build.gradle.kts # gradle.properties # settings.gradle.kts # src/main/java/com/github/mkram17/bazaarutils/features/gui/buttons/CancelOrderAndSearch.java # src/main/java/com/github/mkram17/bazaarutils/utils/minecraft/gui/widgets/TextDisplayWidget.java # src/main/java/com/github/mkram17/bazaarutils/utils/minecraft/item/groups/ItemGroups.java # stonecutter.gradle.kts
mkram17
approved these changes
Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
after
feat/+1.21.11(i will rebase it so it becomes26.2,26.3once consumed dependencies have vers for26.3)CurrencyAPI90d2dedAdjustableWorkingValuesuch that we could plumb Mouse Scroll events to have the user feature of "adjusting a resolved input" when hovering over a input helper