mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 20:53:54 -07:00
Limit server to only send the packets it creates and only accept the packets the client creates
This commit is contained in:
18
src/main/java/net/minecraft/server/PacketCounter.java
Normal file
18
src/main/java/net/minecraft/server/PacketCounter.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
class PacketCounter {
|
||||
|
||||
private int a;
|
||||
private long b;
|
||||
|
||||
private PacketCounter() {}
|
||||
|
||||
public void a(int i) {
|
||||
++this.a;
|
||||
this.b += (long) i;
|
||||
}
|
||||
|
||||
PacketCounter(EmptyClass1 emptyclass1) {
|
||||
this();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user