@@ -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 ));
0 commit comments