Skip to content

Commit

Permalink
comment out the 1.21.4 brewing stand Background slots on 1.21.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jan 4, 2025
1 parent 6901780 commit 2b55b5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,14 @@ public static void renderInventoryBackground54(int x, int y, BufferBuilder buffe

public static void renderInventoryBackgroundSlots(InventoryRenderType type, Inventory inv, int x, int y, DrawContext drawContext)
{
/*
if (type == InventoryRenderType.BREWING_STAND)
{
renderBrewerBackgroundSlots(inv, x, y, drawContext);
}
else if (type == InventoryRenderType.HORSE)
else
*/
if (type == InventoryRenderType.HORSE)
{
renderHorseArmorBackgroundSlots(inv, x, y, drawContext);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@ else if (previewData.nbt() != null && previewData.nbt().contains(NbtKeys.DISABLE
{
InventoryOverlay.renderInventoryBackground(type, xInv, yInv, props.slotsPerRow, totalSlots, mc);
// TODO 1.21.4+
/*
if (type == InventoryOverlay.InventoryRenderType.BREWING_STAND)
{
InventoryOverlay.renderBrewerBackgroundSlots(previewData.inv(), xInv, yInv, drawContext);
}
*/
InventoryOverlay.renderInventoryStacks(type, previewData.inv(), xInv + props.slotOffsetX, yInv + props.slotOffsetY, props.slotsPerRow, startSlot, totalSlots, lockedSlots, mc, drawContext, mouseX, mouseY);
}

Expand Down

0 comments on commit 2b55b5d

Please sign in to comment.