diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-03-10 15:17:01 -0500 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-03-10 15:17:01 -0500 |
commit | c0b3e80d1d4c72be662393eab691d70dd324c684 (patch) | |
tree | d29872688208278eef60a77c28ef4a224e153f30 /src/main/java/net/minecraft | |
parent | 803e67d55dca1a6c0b3c2bd602972154308d53a6 (diff) | |
download | craftbukkit-c0b3e80d1d4c72be662393eab691d70dd324c684.tar craftbukkit-c0b3e80d1d4c72be662393eab691d70dd324c684.tar.gz craftbukkit-c0b3e80d1d4c72be662393eab691d70dd324c684.tar.lz craftbukkit-c0b3e80d1d4c72be662393eab691d70dd324c684.tar.xz craftbukkit-c0b3e80d1d4c72be662393eab691d70dd324c684.zip |
Fixing grammar and CraftBukkit comment.
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 |