-
Notifications
You must be signed in to change notification settings - Fork 423
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 AFTER_SETUP event not being able to render #4219
Conversation
...dering-v1/src/client/java/net/fabricmc/fabric/mixin/client/rendering/WorldRendererMixin.java
Outdated
Show resolved
Hide resolved
...dering-v1/src/client/java/net/fabricmc/fabric/api/client/rendering/v1/WorldRenderEvents.java
Outdated
Show resolved
Hide resolved
LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was pointed out to me on discord that the old API is broken, this should be fixed to work as it did it before (or as close to it). There is no point adding a new api and leaving a broken API in its place.
Removed new event, fixed existing event |
...dering-v1/src/client/java/net/fabricmc/fabric/mixin/client/rendering/WorldRendererMixin.java
Outdated
Show resolved
Hide resolved
* Add BEFORE_TERRAIN world render event * Add 1.21.2 rendering issue warning * Add comment to injection point * close b tag * Undo all new event changes * Move AFTER_SETUP event to new mixin * Remove event interface * Refine mixin (cherry picked from commit 6922831)
Due to 1.21.2 changing the way how level rendering works, adding a
RenderSystem.clear
after theAFTER_SETUP
event, rendering is not possible with this event, so I moved the event to a later point after the clear call but before the terrain rendering