Skip to content

Commit

Permalink
Fix wrong value check again*
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHua269 committed Dec 14, 2023
1 parent 66166c4 commit 9080749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/0015-Add-a-simple-tpsbar.patch
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ index 0000000000000000000000000000000000000000..ac8f0e3bf130ba6dfd7202e2f4803522
+}
diff --git a/src/main/java/me/earthme/luminol/functions/GlobalServerTpsBar.java b/src/main/java/me/earthme/luminol/functions/GlobalServerTpsBar.java
new file mode 100644
index 0000000000000000000000000000000000000000..d575eeccd4a90d9281c2d5349252e5fe7de3d776
index 0000000000000000000000000000000000000000..baec715e0c20e920ccb99f2f07d84fcb6f2b434e
--- /dev/null
+++ b/src/main/java/me/earthme/luminol/functions/GlobalServerTpsBar.java
@@ -0,0 +1,204 @@
Expand Down Expand Up @@ -236,7 +236,7 @@ index 0000000000000000000000000000000000000000..d575eeccd4a90d9281c2d5349252e5fe
+ Placeholder.component("ping",getPingComponent(player.getPing()))
+ ));
+ bar.color(barColorFromTps(tps));
+ bar.progress((float) Math.min(mspt / 50,0));
+ bar.progress((float) Math.max(mspt / 50,0));
+ }
+
+ private static @NotNull Component getPingComponent(int ping){
Expand Down

0 comments on commit 9080749

Please sign in to comment.