Skip to content

Commit 636b950

Browse files
committed
Matrices might have been in the wrong spot in neforge
1 parent 42b5e5e commit 636b950

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

neoforge/src/main/java/generations/gg/generations/core/generationscore/forge/client/GenerationsCoreClientForge.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class GenerationsCoreClientForge(eventBus: IEventBus) {
112112
event.camera
113113
)
114114

115+
MatrixCache.projectionMatrix = event.projectionMatrix
116+
MatrixCache.viewMatrix = event.modelViewMatrix
117+
115118
RenderStateRecord.push()
116119
RenderSystem.enableDepthTest()
117120
RenderSystem.defaultBlendFunc()
@@ -121,9 +124,6 @@ class GenerationsCoreClientForge(eventBus: IEventBus) {
121124
}
122125

123126
RenderLevelStageEvent.Stage.AFTER_LEVEL -> {
124-
MatrixCache.projectionMatrix = event.projectionMatrix
125-
MatrixCache.viewMatrix = event.modelViewMatrix
126-
127127
RenderStateRecord.push()
128128
renderRareCandySolid()
129129
renderRareCandyTransparent()

0 commit comments

Comments
 (0)