Detect and disconnect 1.3 clients properly. Fixes BUKKIT-1952

This commit is contained in:
Wesley Wolfe
2012-07-26 01:17:09 -05:00
parent b00de5f176
commit a4d7691299
2 changed files with 24 additions and 1 deletions

View File

@@ -55,6 +55,12 @@ public class NetLoginHandler extends NetHandler {
}
public void a(Packet2Handshake packet2handshake) {
// CraftBukkit start - 1.3 detection
if (packet2handshake.a == null) {
disconnect("Outdated server!");
return;
}
// CraftBukkit end
// CraftBukkit start
int i = packet2handshake.a.indexOf(';');
if (i == -1) {