Skip to content

Commit 6fe526a

Browse files
committed
fix minimap hud scaling
1 parent b7bcade commit 6fe526a

File tree

6 files changed

+15
-1
lines changed

6 files changed

+15
-1
lines changed

1.20/src/main/java/io/github/axolotlclient/waypoints/map/Minimap.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public void renderMap(GuiGraphics guiGraphics) {
147147
var labelWidth = minecraft.font.width(label);
148148
var labelHeight = minecraft.font.lineHeight;
149149
guiGraphics.pose().pushPose();
150+
guiGraphics.pose().setIdentity();
150151
guiGraphics.pose().translate(x + radius, y + radius, 0);
151152
if (!lockMapToNorth.get()) {
152153
guiGraphics.pose().last().pose().rotate((float) -(((minecraft.player.getVisualRotationYInDegrees() + 180) / 180) * Math.PI), 0, 0, 1);
@@ -193,6 +194,7 @@ private void renderMapWaypoints(GuiGraphics graphics) {
193194
{
194195
pos.zero();
195196
graphics.pose().pushPose();
197+
graphics.pose().setIdentity();
196198
graphics.pose().translate(x, y, 0);
197199
graphics.pose().translate(radius, radius, 0);
198200
graphics.pose().scale((float) Math.sqrt(2), (float) Math.sqrt(2), 1);

1.21.8/src/main/java/io/github/axolotlclient/waypoints/map/Minimap.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,15 @@ public void renderMap(GuiGraphics guiGraphics) {
140140
if (showCardinalDirections.get()) {
141141
Vector2f pos = new Vector2f();
142142
guiGraphics.pose().pushMatrix();
143+
144+
int size = this.size;
143145
var directions = new String[]{"N", "W", "E", "S"};
144146
for (int i : new int[]{-2, 1, 2, -1}) {
145147
var label = directions[i < 0 ? i + 2 : i + 1];
146148
var labelWidth = minecraft.font.width(label);
147149
var labelHeight = minecraft.font.lineHeight;
148150
guiGraphics.pose().pushMatrix();
151+
guiGraphics.pose().identity();
149152
guiGraphics.pose().translate(x + radius, y + radius);
150153
if (!lockMapToNorth.get()) {
151154
guiGraphics.pose().rotate((float) -(((minecraft.player.getVisualRotationYInDegrees() + 180) / 180) * Math.PI));
@@ -192,6 +195,7 @@ private void renderMapWaypoints(GuiGraphics graphics) {
192195
{
193196
pos.zero();
194197
graphics.pose().pushMatrix();
198+
graphics.pose().identity();
195199
graphics.pose().translate(x, y);
196200
graphics.pose().translate(radius, radius);
197201
graphics.pose().scale((float) Math.sqrt(2), (float) Math.sqrt(2));

1.21/src/main/java/io/github/axolotlclient/waypoints/map/Minimap.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public void renderMap(GuiGraphics guiGraphics) {
147147
var labelWidth = minecraft.font.width(label);
148148
var labelHeight = minecraft.font.lineHeight;
149149
guiGraphics.pose().pushPose();
150+
guiGraphics.pose().setIdentity();
150151
guiGraphics.pose().translate(x + radius, y + radius, 0);
151152
if (!lockMapToNorth.get()) {
152153
guiGraphics.pose().last().pose().rotate((float) -(((minecraft.player.getVisualRotationYInDegrees() + 180) / 180) * Math.PI), 0, 0, 1);
@@ -193,6 +194,7 @@ private void renderMapWaypoints(GuiGraphics graphics) {
193194
{
194195
pos.zero();
195196
graphics.pose().pushPose();
197+
graphics.pose().setIdentity();
196198
graphics.pose().translate(x, y, 0);
197199
graphics.pose().translate(radius, radius, 0);
198200
graphics.pose().scale((float) Math.sqrt(2), (float) Math.sqrt(2), 1);

1.8.9/src/main/java/io/github/axolotlclient/waypoints/map/Minimap.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public void renderMap() {
147147
var labelWidth = minecraft.textRenderer.getWidth(label);
148148
var labelHeight = minecraft.textRenderer.fontHeight;
149149
matrixStack.pushMatrix();
150+
matrixStack.identity();
150151
matrixStack.translate(x + radius, y + radius, 0);
151152
if (!lockMapToNorth.get()) {
152153
matrixStack.rotate((float) -(((minecraft.player.getHeadYaw() + 180) / 180) * Math.PI), 0, 0, 1);
@@ -197,6 +198,7 @@ private void renderMapWaypoints() {
197198
{
198199
pos.zero();
199200
matrixStack.pushMatrix();
201+
matrixStack.identity();
200202
matrixStack.translate(x, y, 0);
201203
matrixStack.translate(radius, radius, 0);
202204
matrixStack.scale((float) Math.sqrt(2), (float) Math.sqrt(2), 1);

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22

3+
### 0.0.1-beta.8
4+
5+
- Fix Minimap Hud scaling
6+
37
### 0.0.1-beta.7
48

59
- Improve water display

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.parallel=true
66
axolotlclient.modules.all=true
77

88
# Mod Properties
9-
version=0.0.1-beta.7+3.1.5
9+
version=0.0.1-beta.8+3.1.5
1010

1111
maven_group=io.github.axolotlclient.waypoints
1212

0 commit comments

Comments
 (0)