From 507e2be8ea837aa06c33d158ccc25270b62d832a Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Wed, 9 Mar 2011 21:45:57 +0000 Subject: [PATCH] Fixed LOGIN packet issue --- src/main/java/net/minecraft/server/NetServerHandler.java | 6 ++++-- 1 file 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 e672432421..3d4256aed7 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; } }