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

rendering examples to demonstrate current issues with pre/post events #9674

Open
wants to merge 3 commits into
base: 1.20.x
Choose a base branch
from

Conversation

Kovak
Copy link
Contributor

@Kovak Kovak commented Jul 20, 2023

Ok these are a little contrived but I hope they illustrate the problem mentioned in #9118

If you want to hard crash the client, set RaiseHeightClient#DO_RAISE to true

However, I've included a non-crashing version of the bug as well, this is the one that is defaulted to on. The DoublerClient pre event simply performs some additional rendering in the pre event (in this case I'm literally just rerendering the pig but imagine it as something less contrived). This event is properly attempting to handle cancellation but due to priority ordering it will still run. This will result in rendering only the doubled pig instead of 2 pigs as the original rendering will be cancelled.

You can turn CancelTestPigMod#DO_CANCEL to false if you want to see what rendering looks like in the 'intended' way in either of these examples.

@autoforge autoforge bot added Triage This request requires the active attention of the Triage Team. Requires labelling or reviews. 1.20 labels Jul 20, 2023
@autoforge autoforge bot requested a review from a team July 20, 2023 22:01
@autoforge autoforge bot added the Needs Rebase This PR requires a rebase to implement upstream changes (usually to fix merge conflicts). label Sep 21, 2023
@autoforge
Copy link

autoforge bot commented Sep 21, 2023

@Kovak, this pull request has conflicts, please resolve them for this PR to move forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.20 Needs Rebase This PR requires a rebase to implement upstream changes (usually to fix merge conflicts). Triage This request requires the active attention of the Triage Team. Requires labelling or reviews.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant