This commit is contained in:
1e99 2024-11-17 13:49:32 +01:00
parent df825fa87b
commit 13315e708c
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,5 @@
package eu.e99.svc.io;
import eu.e99.svc.packet.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@ -19,7 +17,8 @@ public class MessageRegistry {
public BinaryMessage readMessage(Reader reader) throws IOException {
int id = reader.readInt();
Supplier<? extends BinaryMessage> supplier = this.messagesById.get(id);;
Supplier<? extends BinaryMessage> supplier = this.messagesById.get(id);
;
if (supplier == null) {
throw new RuntimeException("Failed to find message with id " + id);
}

View file

@ -5,7 +5,6 @@ import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLServerSocketFactory;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.Inet4Address;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.security.KeyStore;