1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00

Fix dynamic color

This commit is contained in:
Shy
2025-05-24 12:05:46 +02:00
parent 8377cdfccf
commit 711a078bb2
@@ -42,7 +42,7 @@ public class PingWidget extends BasicTextWidget {
}
if (valuesRead == 0){
this.renderText = Text.literal("??? ms");
this.textColor = 0x00ff00;
if (this.dynamicColor) this.textColor = 0x00ff00;
return;
}
long avgPing = ping / valuesRead;