private void handleClickOnSlot(Slot slot, int button) {
try {
if (mc.thePlayer == null) {
return;
}
PacketSlotClick packet = new PacketSlotClick(slot, button,Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT));
SpoutClient.getInstance().getPacketManager().sendSpoutPacket(packet);
ItemStack stackOnCursor = new ItemStack(0);
if (mc.thePlayer.inventory.getItemStack() != null) {
net.minecraft.src.ItemStack mcStack = mc.thePlayer.inventory.getItemStack();
stackOnCursor = new ItemStack(mcStack.itemID, mcStack.stackSize, (short) mcStack.getItemDamage());