From c0b3e80d1d4c72be662393eab691d70dd324c684 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 10 Mar 2011 15:17:01 -0500 Subject: Fixing grammar and CraftBukkit comment. --- src/main/java/net/minecraft/server/NetServerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/net/minecraft') diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index fe3cd39b..caf4e0be 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -564,10 +564,11 @@ public class NetServerHandler extends NetHandler implements ICommandListener { } public void a(Packet16BlockItemSwitch packet16blockitemswitch) { + // CraftBukkit start if (packet16blockitemswitch.a < 0 || packet16blockitemswitch.a > 8) { server.getLogger().severe( "Player " + getPlayer().getName() + "/" + getPlayer().getAddress().toString() + - " just send an invalid ItemInHandIndex: " + packet16blockitemswitch.a + + " just sent an invalid ItemInHandIndex: " + packet16blockitemswitch.a + " - very likely a crashing exploit attempt. Recommend ban, and sending a package of joy their way." ); this.b(new Packet1Login("", "", 0, 0, (byte)0)); @@ -575,7 +576,6 @@ public class NetServerHandler extends NetHandler implements ICommandListener { return; } - // CraftBukkit start PlayerItemHeldEvent event = new PlayerItemHeldEvent(Type.PLAYER_ITEM_HELD, getPlayer(), e.inventory.c, packet16blockitemswitch.a); server.getPluginManager().callEvent(event); // CraftBukkit end -- cgit v1.2.3