Skip to content

Commit

Permalink
fix: 修复1.12.2指南针的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSkidder committed Jul 6, 2024
1 parent fffb68d commit 2516b07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/java/top/fpsmaster/ui/Compass.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.client.renderer.GlStateManager;
import org.lwjgl.opengl.GL11;
import top.fpsmaster.FPSMaster;
import top.fpsmaster.interfaces.ProviderManager;
import top.fpsmaster.utils.render.Render2DUtils;

import java.awt.*;
Expand Down Expand Up @@ -55,11 +56,13 @@ public Compass(float i, float o, float s, int a, boolean sh) {
}

public void draw(ScaledResolution sr) {
if (ProviderManager.mcProvider.getPlayer() == null)
return;
preRender(sr);
float center = sr.getScaledWidth() / 2f;

int count = 0;
float yaaahhrewindTime = (Minecraft.getMinecraft().thePlayer.rotationYaw % 360) * 2 + 360 * 3;
float yaaahhrewindTime = (ProviderManager.mcProvider.getPlayer().rotationYaw % 360) * 2 + 360 * 3;
GL11.glPushMatrix();
GL11.glEnable(3089);
Render2DUtils.doGlScissor(sr.getScaledWidth() / 2f - 100, 25, 200, 25);
Expand Down

0 comments on commit 2516b07

Please sign in to comment.