2019-07-30 12:45:45 +02:00
|
|
|
--- a/net/minecraft/server/ServerConnection.java
|
|
|
|
+++ b/net/minecraft/server/ServerConnection.java
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -76,10 +76,20 @@
|
2019-07-30 12:45:45 +02:00
|
|
|
channel.pipeline().addLast("packet_handler", networkmanager);
|
|
|
|
networkmanager.setPacketListener(new HandshakeListener(ServerConnection.this.e, networkmanager));
|
|
|
|
}
|
|
|
|
- }).group((EventLoopGroup) lazyinitvar.a()).localAddress(inetaddress, i)).bind().syncUninterruptibly());
|
|
|
|
+ }).group((EventLoopGroup) lazyinitvar.a()).localAddress(inetaddress, i)).option(ChannelOption.AUTO_READ, false).bind().syncUninterruptibly()); // CraftBukkit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ public void acceptConnections() {
|
2020-01-21 22:00:00 +01:00
|
|
|
+ synchronized (this.listeningChannels) {
|
|
|
|
+ for (ChannelFuture future : this.listeningChannels) {
|
|
|
|
+ future.channel().config().setAutoRead(true);
|
2019-07-30 12:45:45 +02:00
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
+
|
|
|
|
public void b() {
|
|
|
|
this.c = false;
|
2020-01-21 22:00:00 +01:00
|
|
|
Iterator iterator = this.listeningChannels.iterator();
|