add some commands, fix exception spam, split converter nbt implementation

This commit is contained in:
Sen 2025-05-27 14:29:40 +02:00
parent 2cee1d6632
commit ad4949af16
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
9 changed files with 465 additions and 90 deletions

View file

@ -1,5 +1,6 @@
package common.network;
import java.io.IOException;
import java.net.SocketAddress;
import java.nio.channels.ClosedChannelException;
import java.util.Queue;
@ -69,7 +70,7 @@ public class NetConnection extends SimpleChannelInboundHandler<Packet> {
}
else {
comp = "Interner Fehler: " + throwable;
if(!(throwable instanceof ClosedChannelException))
if(!(throwable instanceof ClosedChannelException || throwable instanceof IOException))
Log.NETWORK.error(throwable, "Fehler in der Verbindung mit %s", this.getCutAddress());
}