mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 19:45:21 +01:00
Merge branch 'master' into dev
This commit is contained in:
commit
24ab0d8590
@ -36,7 +36,7 @@ public class PPSSubCmd extends ViaSubCommand {
|
||||
if (!playerVersions.containsKey(playerVersion))
|
||||
playerVersions.put(playerVersion, new HashSet<String>());
|
||||
UserConnection uc = Via.getManager().getConnection(p.getUUID());
|
||||
if (uc.getPacketsPerSecond() > -1) {
|
||||
if (uc != null && uc.getPacketsPerSecond() > -1) {
|
||||
playerVersions.get(playerVersion).add(p.getName() + " (" + uc.getPacketsPerSecond() + " PPS)");
|
||||
totalPackets += uc.getPacketsPerSecond();
|
||||
if (uc.getPacketsPerSecond() > max) {
|
||||
|
Loading…
Reference in New Issue
Block a user