summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-03-09 21:45:57 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-09 21:45:57 +0000
commit507e2be8ea837aa06c33d158ccc25270b62d832a (patch)
tree613ca8f4da55b7aaad2683927206094800eb2498 /src
parent9aa582885ae2a55eee5d1777b7d8d91ea0a6e803 (diff)
downloadcraftbukkit-507e2be8ea837aa06c33d158ccc25270b62d832a.tar
craftbukkit-507e2be8ea837aa06c33d158ccc25270b62d832a.tar.gz
craftbukkit-507e2be8ea837aa06c33d158ccc25270b62d832a.tar.lz
craftbukkit-507e2be8ea837aa06c33d158ccc25270b62d832a.tar.xz
craftbukkit-507e2be8ea837aa06c33d158ccc25270b62d832a.zip
Fixed LOGIN packet issue
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index e6724324..3d4256ae 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -568,7 +568,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
" just send an invalid ItemInHandIndex: " + packet16blockitemswitch.a +
" - very likely a crashing exploit attempt. Recommend ban, and sending a package of joy their way."
);
- this.d.f.a(new Packet1Login("", "", 0, 0, (byte)0));
+ this.b(new Packet1Login("", "", 0, 0, (byte)0));
+ this.a("Exploits.");
return;
}
@@ -807,7 +808,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
int z = packet130updatesign.c;
server.getLogger().severe("Player " + getPlayer().getName() + "/" + getPlayer().getAddress().toString() + " just tried to change the sign text at " +
x + "," + y + "," + z + " - very likely an exploit attempt. Recommend ban, and sending a package of joy their way.");
- this.d.f.a(new Packet1Login("", "", 0, 0, (byte)0));
+ this.b(new Packet1Login("", "", 0, 0, (byte)0));
+ this.a("Exploits.");
return;
}
}