Buggy code:
public class CookClass { private ClassPerks gui ; private int cookXP ; public int level ; private int nextLevel ; private int levelOne = 2500 ; private int levelTwo = 5000 ; private int levelThree = 10000 ; protected List buttonList = new ArrayList ( ) ; private IconButton woodHoe ; private IconButton stoneHoe ; private IconButton seeds ; private IconButton ironHoe ; private IconButton fishingRod ; private IconButton apple ; private IconButton carrot ; private IconButton goldHoe ; private IconButton diamondHoe ; private IconButton fish ; private IconButton salmon ; private IconButton cake ; private IconButton goldenApple ; private IconButton cookie ; private IconButton goldenCarrot ; private ProgressBar cook ; public CookClass ( ClassPerks gui , int cookXP , int level ) { } public List getButtonList ( ) { int x = ( this . gui . width ) // 2 ; int y = ( this . gui . height ) // 2 ; this . buttonList . add ( ( woodHoe = new IconButton ( ( - 1 ) , ( x - 15 ) , ( y - 90 ) , 20 , 20 , "perkIcons.png" , 0 , 32 , "-10%<seq2seq4repair_space>Damage<seq2seq4repair_space>When<seq2seq4repair_space>Held" ) ) ) ; this . buttonList . add ( ( stoneHoe = new IconButton ( 33 , ( x - 75 ) , ( y - 60 ) , 20 , 20 , "perkIcons.png" , 16 , 32 , "-15%<seq2seq4repair_space>Damage<seq2seq4repair_space>When<seq2seq4repair_space>Held" ) ) ) ; this . buttonList . add ( ( seeds = new IconButton ( 34 , ( x + 45 ) , ( y - 60 ) , 20 , 20 , "perkIcons.png" , 32 , 32 , "2x<seq2seq4repair_space>Harvest" ) ) ) ; this . buttonList . add ( ( ironHoe = new IconButton ( 35 , ( x - 105 ) , ( y - 30 ) , 20 , 20 , "perkIcons.png" , 48 , 32 , "+15%<seq2seq4repair_space>Damage" ) ) ) ; this . buttonList . add ( ( fishingRod = new IconButton ( 36 , ( x - 45 ) , ( y - 30 ) , 20 , 20 , "perkIcons.png" , 64 , 32 , "-15%<seq2seq4repair_space>Damage<seq2seq4repair_space>When<seq2seq4repair_space>Held" ) ) ) ; this . buttonList . add ( ( apple = new IconButton ( 37 , ( x + 15 ) , ( y - 30 ) , 20 , 20 , "perkIcons.png" , 80 , 32 , "-10%<seq2seq4repair_space>Damage<seq2seq4repair_space>To<seq2seq4repair_space>Mounted<seq2seq4repair_space>Horse" ) ) ) ; this . buttonList . add ( ( carrot = new IconButton ( 38 , ( x + 75 ) , ( y - 30 ) , 20 , 20 , "perkIcons.png" , 96 , 32 , "+10%<seq2seq4repair_space>Damage<seq2seq4repair_space>To<seq2seq4repair_space>All<seq2seq4repair_space>Animals" ) ) ) ; this . buttonList . add ( ( goldenCarrot = new IconButton ( 46 , ( x + 90 ) , y , 20 , 20 , "perkIcons.png" , 224 , 32 , "+10%<seq2seq4repair_space>Damage<seq2seq4repair_space>To<seq2seq4repair_space>Players" ) ) ) ; this . buttonList . add ( ( cookie = new IconButton ( 45 , ( x + 60 ) , y , 20 , 20 , "perkIcons.png" , 208 , 32 , "Restore<seq2seq4repair_space>Health" ) ) ) ; <START_BUG> this . buttonList . add ( ( goldenApple = new IconButton ( 44 , ( x + 30 ) , y , 20 , 20 , "perkIcons.png" , 192 , 32 , "+10%<seq2seq4repair_space>Damate<seq2seq4repair_space>To<seq2seq4repair_space>Horses" ) ) ) ; <END_BUG> this . buttonList . add ( ( cake = new IconButton ( 43 , x , y , 20 , 20 , "perkIcons.png" , 176 , 32 , "Restore<seq2seq4repair_space>Health" ) ) ) ; this . buttonList . add ( ( salmon = new IconButton ( 42 , ( x - 30 ) , y , 20 , 20 , "perkIcons.png" , 160 , 32 , "Potion<seq2seq4repair_space>of<seq2seq4repair_space>Strength" ) ) ) ; this . buttonList . add ( ( fish = new IconButton ( 41 , ( x - 60 ) , y , 20 , 20 , "perkIcons.png" , 144 , 32 , "Potion<seq2seq4repair_space>of<seq2seq4repair_space>Water<seq2seq4repair_space>Breathing" ) ) ) ; this . buttonList . add ( ( diamondHoe = new IconButton ( 40 , ( x - 90 ) , y , 20 , 20 , "perkIcons.png" , 128 , 32 , "+25%<seq2seq4repair_space>Damage" ) ) ) ; this . buttonList . add ( ( goldHoe = new IconButton ( 39 , ( x - 120 ) , y , 20 , 20 , "perkIcons.png" , 112 , 32 , "-25%<seq2seq4repair_space>Damage<seq2seq4repair_space>When<seq2seq4repair_space>Held" ) ) ) ; renderTree ( ) ; return buttonList ; } public void render ( ) { } private void renderTree ( ) { } }

Fix:
this . buttonList . add ( ( goldenApple = new IconButton ( 44 , ( x + 30 ) , y , 20 , 20 , "perkIcons.png" , 192 , 32 , "+10%<seq2seq4repair_space>Damage<seq2seq4repair_space>To<seq2seq4repair_space>Horses" ) ) ) ;