Fix PingPacket.java

This commit is contained in:
Németh Noel 2021-06-30 13:23:32 +02:00
parent ba2dcaac43
commit 7ff5173e03

View File

@ -25,7 +25,7 @@ public class PingPacket implements ClientPreplayPacket {
if (clientPingEvent.isCancelled()) {
connection.disconnect();
} else {
if (clientPingEvent.getDelay().toMilliseconds() == 0) {
if (clientPingEvent.getDelay().isZero()) {
connection.sendPacket(new PongPacket(clientPingEvent.getPayload()));
connection.disconnect();
} else {