Skip to content

fix offsets bugging out when there are multiple faces passed to a FluidAreaRender#3858

Merged
jurrejelle merged 1 commit intoGregTechCEu:1.20.1from
NegaNote:nn/fix-fluidarearender-faces
Sep 4, 2025
Merged

fix offsets bugging out when there are multiple faces passed to a FluidAreaRender#3858
jurrejelle merged 1 commit intoGregTechCEu:1.20.1from
NegaNote:nn/fix-fluidarearender-faces

Conversation

@NegaNote
Copy link
Copy Markdown
Contributor

@NegaNote NegaNote commented Sep 4, 2025

What

FluidAreaRenders bug out and apply their offsets repeatedly to themselves if there are multiple RelativeDirections passed in as faces.

Implementation Details

Moves poseStack push and pop into the for loop instead of outside it.

Outcome

FluidAreaRenders render correctly if given a drawFaces list longer than 1.

Additional Information

Before fix:
2025-09-04_00 14 48

After fix:
2025-09-04_00 25 01

@NegaNote NegaNote requested a review from a team as a code owner September 4, 2025 04:26
@github-actions github-actions bot added the 1.20.1 label Sep 4, 2025
@YoungOnionMC YoungOnionMC added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Sep 4, 2025
@jurrejelle jurrejelle merged commit 6773309 into GregTechCEu:1.20.1 Sep 4, 2025
6 of 7 checks passed
@NegaNote NegaNote deleted the nn/fix-fluidarearender-faces branch November 11, 2025 04:12
LeoDreamer2004 pushed a commit to LeoDreamer2004/GregTech-Modern that referenced this pull request Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants