mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Kick for invalid carried item.
This commit is contained in:
1 parent
f188afe794
commit
8d35caf070
1 file changed
+1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user