Skip to content

Commit

Permalink
Fix: Everything can run at 1.20.1 now!(Tested)
Browse files Browse the repository at this point in the history
  • Loading branch information
MulatramAwA committed Dec 6, 2024
1 parent 82babd1 commit eb6369c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.ArrayList;

import static mypals.ml.config.ScheduledTickVisualizerConfig.sortSubOrderInfo;

Expand Down
11 changes: 4 additions & 7 deletions src/client/java/mypals/ml/mixin/client/WorldRenderMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.llamalad7.mixinextras.sugar.Local;
import mypals.ml.InfoRender;
import net.minecraft.client.render.RenderTickCounter;
import net.minecraft.client.render.WorldRenderer;
import net.minecraft.client.render.*;
import net.minecraft.client.util.math.MatrixStack;
import org.joml.Matrix4f;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand All @@ -13,10 +13,7 @@
@Mixin(WorldRenderer.class)
public class WorldRenderMixin {
@Inject(method = "render", at = @At(value = "INVOKE",target = "Lnet/minecraft/client/render/WorldRenderer;renderChunkDebugInfo(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/Camera;)V", ordinal = 0))
public void render(MatrixStack matrixStack,float tickDelta,
long limitTime, boolean renderBlockOutline,
Camera camera, GameRenderer gameRenderer,
LightmapTextureManager lightmapTextureManager, Matrix4f positionMatrix, CallbackInfo ci){
InfoRender.render(matrixStack,tickDelta);
public void render(MatrixStack matrices, float tickDelta, long limitTime, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightmapTextureManager lightmapTextureManager, Matrix4f projectionMatrix, CallbackInfo ci){
InfoRender.render(matrices,tickDelta);
}
}

0 comments on commit eb6369c

Please sign in to comment.