mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Limit server to only send the packets it creates and only accept the packets the client creates
This commit is contained in:
1 parent
ce5ee0996c
commit
f1ffeb256d
2 files changed
+252
No files matched your search
@@ -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