99import net .minecraft .client .gui .render .state .TiledBlitRenderState ;
1010import net .minecraft .client .renderer .RenderPipelines ;
1111import net .minecraft .client .renderer .texture .AbstractTexture ;
12+ import org .joml .Matrix3x2f ;
1213import org .jspecify .annotations .Nullable ;
1314
1415import javax .imageio .ImageIO ;
@@ -24,7 +25,7 @@ public void render(ImageIcon icon, GuiGraphics graphics, int x, int y, int w, in
2425 graphics .guiRenderState .submitGuiElement (new BlitRenderState (
2526 RenderPipelines .GUI_TEXTURED ,
2627 TextureSetup .singleTexture (texture .getTextureView (), texture .getSampler ()),
27- graphics .pose (),
28+ new Matrix3x2f ( graphics .pose () ),
2829 x , y , x + w , y + h ,
2930 icon .minU , icon .maxU , icon .minV , icon .maxV ,
3031 icon .color .rgba (),
@@ -34,7 +35,7 @@ public void render(ImageIcon icon, GuiGraphics graphics, int x, int y, int w, in
3435 graphics .guiRenderState .submitGuiElement (new TiledBlitRenderState (
3536 RenderPipelines .GUI_TEXTURED ,
3637 TextureSetup .singleTexture (texture .getTextureView (), texture .getSampler ()),
37- graphics .pose (),
38+ new Matrix3x2f ( graphics .pose () ),
3839 (int ) icon .tileSize , (int ) icon .tileSize ,
3940 x , y , x + w , y + h ,
4041 icon .minU , icon .maxU , icon .minV , icon .maxV ,
0 commit comments