[Demonstration 1]

[Buggy Method]
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onClientTick(TickEvent.ClientTickEvent event) {
    cTick = (cTick + 1) % 10;
    if (cTick != 0 || Minecraft.getMinecraft().thePlayer == null || !isExcavating || !ExcavationSettings.mustHold) {
        return;
    }
    boolean canContinue = true;
    if (ExcavationSettings.mineMode < 0) {
        canContinue = false;
    } else if (ExcavationSettings.mineMode == 0) {
        if (!ExcavationKeys.veinKey.isPressed()) {
            canContinue = false;
        }
    } else if (ExcavationSettings.mineMode != 2 && !Minecraft.getMinecraft().thePlayer.isSneaking()) {
        canContinue = false;
    }
    if (!canContinue) {
        isExcavating = false;
        NBTTagCompound tags = new NBTTagCompound();
        tags.setBoolean("cancel", true);
        OreExcavation.instance.network.sendToServer(new PacketExcavation(tags));
    }
}

[Buggy Hunk]
if(!ExcavationKeys.veinKey.isPressed())

[Patch]
if(!ExcavationKeys.veinKey.isKeyDown())

[Demonstration 2]

[Buggy Method]
@Override
public int getSlotForStack(ItemStack stack) {
    int slot = -1;
    if (stack == null || stack.getItem() == null) {
        return slot;
    }
    if (isSameItem(stack, active)) {
        slot = 0;
    } else if (isSameItem(stack, offhand)) {
        slot = 1;
    } else {
        for (int i = 0; i < mainInventory.length; i++) {
            ItemStack inSlot = this.getStackInSlot(i + 1 + armorInventory.length);
            if (isSameItem(stack, inSlot)) {
                slot = i + 2 + armorInventory.length;
                break;
            }
        }
    }
    return slot;
}

[Buggy Hunk]
ItemStack inSlot = this.getStackInSlot(i + 1 + armorInventory.length);

[Patch]
ItemStack inSlot = this.getStackInSlot(i + 2 + armorInventory.length);

[Demonstration 3]

[Buggy Method]
public void update() {
    for (int i = 0; i < skins.size(); i++) {
        skins.get(i).update();
        if (skins.get(i).isPressed()) {
            curr = i;
        }
    }
}

[Buggy Hunk]
if(skins.get(i).isPressed()) {

[Patch]
if(skins.get(i).isPressed() && (TitanicClass.getMouse().getY() <= TitanicClass.ScreenHeight/2) ) {