diff options
Diffstat (limited to 'patches/server/0697-Add-packet-limiter-config.patch')
-rw-r--r-- | patches/server/0697-Add-packet-limiter-config.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0697-Add-packet-limiter-config.patch b/patches/server/0697-Add-packet-limiter-config.patch index 52e12fb5a0..4e51d69d3a 100644 --- a/patches/server/0697-Add-packet-limiter-config.patch +++ b/patches/server/0697-Add-packet-limiter-config.patch @@ -24,10 +24,10 @@ and an action can be defined: DROP or KICK If interval or rate are less-than 0, the limit is ignored diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java -index 71cedd62689e721d71b47098ad52e63189748600..1690626b8a62e078ce23e725c0384983af9c9e23 100644 +index 890d14503e157d6c07a6db1f180f49f81118e301..347e1da7b5b890c297863736e62a8c225b112db2 100644 --- a/src/main/java/net/minecraft/network/Connection.java +++ b/src/main/java/net/minecraft/network/Connection.java -@@ -156,6 +156,22 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> { +@@ -158,6 +158,22 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> { } } // Paper end - allow controlled flushing @@ -50,7 +50,7 @@ index 71cedd62689e721d71b47098ad52e63189748600..1690626b8a62e078ce23e725c0384983 public Connection(PacketFlow side) { this.receiving = side; -@@ -240,6 +256,45 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> { +@@ -246,6 +262,45 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> { protected void channelRead0(ChannelHandlerContext channelhandlercontext, Packet<?> packet) { if (this.channel.isOpen()) { |