mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 14:38:50 +00:00
Update to 1.21.4
This commit is contained in:
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();
|
||||
|
||||
@@ -32,7 +32,7 @@ public class MixinLevelRenderer {
|
||||
target = "Lnet/minecraft/client/Options;getCloudsType()Lnet/minecraft/client/CloudStatus;",
|
||||
shift = At.Shift.BEFORE
|
||||
))
|
||||
public void renderLevelPost(GraphicsResourceAllocator graphicsResourceAllocator, net.minecraft.client.DeltaTracker deltaTracker, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightTexture lightTexture,
|
||||
public void renderLevelPost(GraphicsResourceAllocator graphicsResourceAllocator, net.minecraft.client.DeltaTracker deltaTracker, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer,
|
||||
Matrix4f matrix4f, Matrix4f projection, CallbackInfo ci, @Local FrameGraphBuilder frameGraphBuilder) {
|
||||
|
||||
if (!Flashback.isInReplay()) {
|
||||
@@ -53,7 +53,7 @@ public class MixinLevelRenderer {
|
||||
modelViewStack.identity();
|
||||
|
||||
float tickDelta = deltaTracker.getGameTimeDeltaPartialTick(true);
|
||||
WorldRenderHook.renderHook(poseStack, tickDelta, renderBlockOutline, camera, gameRenderer, lightTexture, projection);
|
||||
WorldRenderHook.renderHook(poseStack, tickDelta, renderBlockOutline, camera, gameRenderer, projection);
|
||||
|
||||
this.renderBuffers.bufferSource().endBatch();
|
||||
|
||||
|
||||
Reference in new issue
Block a user