@@ -54,7 +54,7 @@ public class Minimap extends MinimapCommon {
5454
5555 private static final ResourceLocation texLocation = AxolotlClientWaypoints .rl ("minimap" );
5656 public static final ResourceLocation arrowLocation = AxolotlClientWaypoints .rl ("textures/gui/sprites/arrow.png" );
57- private final NativeImage pixels = new NativeImage (size , size , false );
57+ private final NativeImage pixels = new NativeImage (viewDistance , viewDistance , false );
5858 public long updateDuration = -1 ;
5959 private DynamicTexture tex ;
6060 private int mapCenterX , mapCenterZ ;
@@ -122,12 +122,12 @@ public void renderMap(GuiGraphics guiGraphics) {
122122 }
123123 guiGraphics .pose ().scale ((float ) Math .sqrt (2 ), (float ) Math .sqrt (2 ), 1 );
124124 guiGraphics .pose ().scale (mapScale .get (), mapScale .get (), 1 );
125- guiGraphics .pose ().translate (-pixels . getWidth () / 2f , -pixels . getHeight () / 2f , 0 );
125+ guiGraphics .pose ().translate (-radius , -radius , 0 );
126126 float offX , offZ ;
127127 offX = -(float ) (minecraft .player .getX () - mapCenterX );
128128 offZ = -(float ) (minecraft .player .getZ () - mapCenterZ );
129- guiGraphics .pose ().translate (offX / mapScale . get () , offZ / mapScale . get () , 0 );
130- guiGraphics .blit (texLocation , 0 , 0 , 0 , 0 , pixels .getWidth (), pixels .getHeight (), pixels . getWidth (), pixels . getHeight () );
129+ guiGraphics .pose ().translate (offX , offZ , 0 );
130+ guiGraphics .blit (texLocation , 0 , 0 , 0 , 0 , pixels .getWidth (), pixels .getHeight (), size , size );
131131 guiGraphics .pose ().popPose ();
132132 guiGraphics .disableScissor ();
133133 }
0 commit comments