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:
@@ -42,7 +42,7 @@ public class PingWidget extends BasicTextWidget {
|
|||||||
}
|
}
|
||||||
if (valuesRead == 0){
|
if (valuesRead == 0){
|
||||||
this.renderText = Text.literal("??? ms");
|
this.renderText = Text.literal("??? ms");
|
||||||
this.textColor = 0x00ff00;
|
if (this.dynamicColor) this.textColor = 0x00ff00;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
long avgPing = ping / valuesRead;
|
long avgPing = ping / valuesRead;
|
||||||
|
|||||||
Reference in New Issue
Block a user