mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +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()) {
|
||||
connection.disconnect();
|
||||
} else {
|
||||
if (clientPingEvent.getDelay().toMilliseconds() == 0) {
|
||||
if (clientPingEvent.getDelay().isZero()) {
|
||||
connection.sendPacket(new PongPacket(clientPingEvent.getPayload()));
|
||||
connection.disconnect();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user