Limit server to only send the packets it creates and only accept the packets the client creates

This commit is contained in:
Erik Broes
2011-03-27 12:36:51 +02:00
parent ce5ee0996c
commit f1ffeb256d
2 changed files with 252 additions and 0 deletions

View 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();
}
}