diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 494a702820..2b88c7e94f 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -830,6 +830,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { this.player.inventory.itemInHandIndex = packet16blockitemswitch.itemInHandIndex; } else { logger.warning(this.player.name + " tried to set an invalid carried item"); + this.disconnect("Nope!"); // CraftBukkit } }