Skip to content

Commit 4af1ca2

Browse files
authored
Fix Reloading Plugins text not showing on 1.21.6+ (#1933)
1 parent bbf4c43 commit 4af1ca2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/ConfigReloadingScreen.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import net.minecraft.client.gui.screens.Screen;
3030
import net.minecraft.network.chat.CommonComponents;
3131
import net.minecraft.network.chat.Component;
32+
import net.minecraft.util.CommonColors;
3233
import org.jetbrains.annotations.ApiStatus;
3334
import org.jetbrains.annotations.Nullable;
3435

@@ -92,10 +93,10 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) {
9293
int o = this.isFocused() ? -1 : -6250336;
9394
graphics.fill(k + 1, l, k + m, l + n, -16777216);
9495
graphics.renderOutline(k, l, m, n, o);
95-
graphics.drawCenteredString(this.font, title, this.width / 2, l + 12, 0xffffff);
96-
graphics.drawCenteredString(this.font, text, this.width / 2, l + 12 + 9, 0x808080);
96+
graphics.drawCenteredString(this.font, title, this.width / 2, l + 12, CommonColors.WHITE);
97+
graphics.drawCenteredString(this.font, text, this.width / 2, l + 12 + 9, 0xFF808080);
9798
if (subtitle != null) {
98-
graphics.drawCenteredString(this.font, subtitle, this.width / 2, l + 12 + 9 + 9, 0x808080);
99+
graphics.drawCenteredString(this.font, subtitle, this.width / 2, l + 12 + 9 + 9, 0xFF808080);
99100
}
100101
}
101102
}

0 commit comments

Comments
 (0)