Skip to content

Commit

Permalink
Fix ping method error spam
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLS3 committed Sep 25, 2023
1 parent 4c5ffca commit 17d3540
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public boolean isAvailable() {

@Override
public int getPing(Player player) {
if (!reasonForUnavailability.isEmpty()) return -1;
if (reasonForUnavailability != null) return -1;

try {
Method getPing = player.getClass().getDeclaredMethod("getPing");
Expand Down

0 comments on commit 17d3540

Please sign in to comment.