Skip to content

Commit

Permalink
render item decorations in side config gui
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Oct 28, 2023
1 parent 817a645 commit 5dde47f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.function.Supplier;
import mekanism.api.RelativeSide;
import mekanism.api.text.EnumColor;
import mekanism.client.gui.GuiUtils;
import mekanism.client.gui.IGuiWrapper;
import mekanism.common.Mekanism;
import mekanism.common.lib.transmitter.TransmissionType;
Expand Down Expand Up @@ -60,7 +61,7 @@ public void drawBackground(@NotNull GuiGraphics guiGraphics, int mouseX, int mou
super.drawBackground(guiGraphics, mouseX, mouseY, partialTicks);

if (!otherBlockItem.isEmpty()) {
guiGraphics.renderItem(otherBlockItem, this.getRelativeX()+3, this.getRelativeY()+3);
GuiUtils.renderItem(guiGraphics, otherBlockItem, this.getRelativeX()+3, this.getRelativeY()+3, 1, getFont(), null, true);
}
}
}

0 comments on commit 5dde47f

Please sign in to comment.