[1337 GEN Bug] CFPack usage drain two times more pellets then manual refill.

  • Manual recipe based refill allow player to cast sprayer two times per each pellet loaded.


    CFPack loaded with pellets wont recharge sprayer, and will drain pellet every use, soo it will cost you 200% for using CFPack.


    Untested ingame found due code lurking.


    Code
    case 3: // canning machine codeinventory[0].stackSize--;
                inventory[3].setItemDamage(inventory[3].getItemDamage() - 1);


    Code
    public boolean getCFPellet(EntityPlayer entityplayer, ItemStack itemstack)
    itemstack.setItemDamage(itemstack.getItemDamage() + 1);


    recipe for manual recharge provide 200 durability per pellet, usage cost 100 durability.