Update to 1.21.4

This commit is contained in:
Moulberry committed 2024-12-08 12:10:12 +01:00
1 parent 8853aea7cd
commit 7c2c80c41c
7 files changed
+20 -21

No files matched your search

@@ -73,7 +73,7 @@ public abstract class MixinLevelRenderer {
@Inject(method = "renderLevel", at = @At("HEAD"))
public void renderLevel(GraphicsResourceAllocator graphicsResourceAllocator, DeltaTracker deltaTracker, boolean bl, Camera camera, GameRenderer gameRenderer,
LightTexture lightTexture, Matrix4f matrix4f, Matrix4f projection, CallbackInfo ci) {
Matrix4f matrix4f, Matrix4f projection, CallbackInfo ci) {
ReplayUI.lastProjectionMatrix = projection;
ReplayUI.lastViewQuaternion = camera.rotation();
}
@@ -184,7 +184,7 @@ public abstract class MixinLevelRenderer {
}
@Inject(method = "addParticlesPass", at = @At("HEAD"), cancellable = true)
public void addParticlesPass(FrameGraphBuilder frameGraphBuilder, Camera camera, LightTexture lightTexture, float f, FogParameters fogParameters, CallbackInfo ci) {
public void addParticlesPass(FrameGraphBuilder frameGraphBuilder, Camera camera, float f, FogParameters fogParameters, CallbackInfo ci) {
EditorState editorState = EditorStateManager.getCurrent();
if (editorState != null && !editorState.replayVisuals.renderParticles) {
ci.cancel();