@@ -2446,7 +2446,7 @@ private void drawCompactDeployableStatus(GuiGraphics graphics, float scale, Butt
24462446 }
24472447
24482448 if (entity instanceof ArmorStand armorStand ) {
2449- drawDeployableArmorStand (graphics , armorStand , x , y , DEPLOYABLE_GUI_SIZE , DEPLOYABLE_GUI_SIZE , scale );
2449+ drawDeployableArmorStand (graphics , armorStand , x , y , scale );
24502450 } else {
24512451 graphics .blit (RenderPipelines .GUI_TEXTURED , deployable .getResourceLocation (), (int ) x , (int ) y , 0 , 0 , DEPLOYABLE_GUI_SIZE , DEPLOYABLE_GUI_SIZE , DEPLOYABLE_GUI_SIZE , DEPLOYABLE_GUI_SIZE );
24522452 }
@@ -2576,7 +2576,7 @@ private void drawDetailedDeployableStatus(GuiGraphics graphics, float scale, But
25762576 }
25772577
25782578 if (entity instanceof ArmorStand armorStand ) {
2579- drawDeployableArmorStand (graphics , armorStand , x , y , DEPLOYABLE_GUI_SIZE , height - DEPLOYABLE_GUI_SIZE , scale );
2579+ drawDeployableArmorStand (graphics , armorStand , x , y , scale );
25802580 } else {
25812581 graphics .blit (RenderPipelines .GUI_TEXTURED , deployable .getResourceLocation (), (int ) x , (int ) y , 0 , 0 , DEPLOYABLE_GUI_SIZE , DEPLOYABLE_GUI_SIZE , DEPLOYABLE_GUI_SIZE , DEPLOYABLE_GUI_SIZE );
25822582 }
@@ -2655,7 +2655,7 @@ public void onRenderWorld(MultiBufferSource.BufferSource source, PoseStack poseS
26552655 HealingCircleManager .renderHealingCircleOverlays (source , poseStack );
26562656 }
26572657
2658- private void drawDeployableArmorStand (GuiGraphics graphics , ArmorStand deployableArmorStand , float x , float y , float width , float height , float scale ) {
2658+ private void drawDeployableArmorStand (GuiGraphics graphics , ArmorStand deployableArmorStand , float x , float y , float scale ) {
26592659 Vector3f translation = new Vector3f (0.0F , 1.5F + 0.0625F * deployableArmorStand .getScale (), 0.0F );
26602660 Quaternionf rotation = Axis .ZP .rotationDegrees (180.0F );
26612661 Quaternionf rotation4 = Axis .XP .rotationDegrees (-22.0F );
@@ -2672,9 +2672,8 @@ private void drawDeployableArmorStand(GuiGraphics graphics, ArmorStand deployabl
26722672
26732673 x *= scale ;
26742674 y *= scale ;
2675- width *= scale ;
2676- height *= scale ;
2677- InventoryScreen .renderEntityInInventory (graphics , Math .round (x ), Math .round (y ), Math .round (x + width ), Math .round (y + height ), 25.0F / deployableArmorStand .getScale () * scale , translation , rotation , null , deployableArmorStand );
2675+ float scaledWH = DEPLOYABLE_GUI_SIZE * scale ;
2676+ InventoryScreen .renderEntityInInventory (graphics , Math .round (x ), Math .round (y ), Math .round (x + scaledWH ), Math .round (y + scaledWH ), 25.0F / deployableArmorStand .getScale () * scale , translation , rotation , null , deployableArmorStand );
26782677
26792678 // rollback after rendering
26802679 deployableArmorStand .yBodyRot = prevRenderYawOffset ;
0 commit comments