mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Fix PingPacket.java
This commit is contained in:
parent
ba2dcaac43
commit
7ff5173e03
@ -25,7 +25,7 @@ public class PingPacket implements ClientPreplayPacket {
|
|||||||
if (clientPingEvent.isCancelled()) {
|
if (clientPingEvent.isCancelled()) {
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
} else {
|
} else {
|
||||||
if (clientPingEvent.getDelay().toMilliseconds() == 0) {
|
if (clientPingEvent.getDelay().isZero()) {
|
||||||
connection.sendPacket(new PongPacket(clientPingEvent.getPayload()));
|
connection.sendPacket(new PongPacket(clientPingEvent.getPayload()));
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user