mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-30 12:01:26 +01:00
Handle the connection exception being null
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
3211831073
commit
13c05626e2
@ -321,7 +321,7 @@ public final class PacketUtils {
|
||||
}
|
||||
|
||||
// Handle single entry
|
||||
if (singleEntry != null && !singleEntry.exception.equals(connection)) {
|
||||
if (singleEntry != null && !Objects.equals(singleEntry.exception, connection)) {
|
||||
writer.accept(singleEntry.buffer.position(0));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user