Skip to content

Commit

Permalink
[Gui] Restrict facing value to match the f3 gui
Browse files Browse the repository at this point in the history
  • Loading branch information
ScribbleTAS committed Dec 13, 2024
1 parent 96c1cbd commit c755f29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/minecrafttas/tasmod/gui/InfoHud.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.util.math.MathHelper;

/**
* The info hud is a hud that is always being rendered ontop of the screen, it can show some stuff such as coordinates, etc.,
Expand Down Expand Up @@ -311,7 +312,7 @@ public boolean checkInit() {
+ "_visible")), Boolean.parseBoolean(configuration.getProperty(title + "_rect")), () -> {
if (Minecraft.getMinecraft().currentScreen == this)
return "Facing";
return String.format("%.2f %.2f", Minecraft.getMinecraft().player.rotationYaw, Minecraft.getMinecraft().player.rotationPitch);
return String.format("%.2f %.2f", MathHelper.wrapDegrees(Minecraft.getMinecraft().player.rotationYaw), MathHelper.wrapDegrees(Minecraft.getMinecraft().player.rotationPitch));
}));

title = "camera";
Expand Down

0 comments on commit c755f29

Please sign in to comment.