Skip to content

Commit 20a078a

Browse files
committed
fix: don't render empty Color4I as a white block
1 parent c037b84 commit 20a078a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/dev/ftb/mods/ftblibrary/client/icon/Color4IRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public enum Color4IRenderer implements IconRenderer<Color4I> {
1212

1313
@Override
1414
public void render(Color4I icon, GuiGraphics graphics, int x, int y, int w, int h) {
15-
if (w > 0 && h > 0) {
15+
if (w > 0 && h > 0 && !icon.isEmpty()) {
1616
graphics.fill(RenderPipelines.GUI, x, y, x + w, y + h, icon.rgba());
1717
}
1818
}

0 commit comments

Comments
 (0)