Buggy code:
public class MinestuckConfig { public static Configuration config ; public static Side gameSide ; @ SideOnly ( Side . CLIENT ) public static int clientOverworldEditRange ; @ SideOnly ( Side . CLIENT ) public static int clientLandEditRange ; @ SideOnly ( Side . CLIENT ) public static int clientCardCost ; @ SideOnly ( Side . CLIENT ) public static byte clientTreeAutobalance ; @ SideOnly ( Side . CLIENT ) public static boolean clientHardMode ; @ SideOnly ( Side . CLIENT ) public static boolean clientGiveItems ; @ SideOnly ( Side . CLIENT ) public static boolean clientInfTreeModus ; public static boolean hardMode = false ; public static boolean generateCruxiteOre ; public static boolean privateComputers ; public static boolean globalSession ; public static boolean forceMaxSize ; public static boolean giveItems ; public static boolean specialCardRenderer ; public static boolean infiniteTreeModus ; public static boolean cardRecipe ; public static boolean cardLoot ; public static String privateMessage ; public static int artifactRange ; public static int overworldEditRange ; public static int landEditRange ; public static int cardResolution ; public static int initialModusSize ; public static int [ ] defaultModusTypes ; public static int modusMaxSize ; public static int cardCost ; public static int escapeFailureMode ; public static byte treeModusSetting ; public static boolean [ ] deployConfigurations ; static void loadConfigFile ( File file , Side side ) { } static void loadBasicConfigOptions ( ) { MinestuckConfig . initialModusSize = MinestuckConfig . config . get ( "Modus" , "initialModusSize" , 5 ) . setMinValue ( 0 ) . setLanguageKey ( "minestuck.config.initialModusSize" ) . getInt ( ) ; MinestuckConfig . defaultModusTypes = MinestuckConfig . config . get ( "Modus" , "defaultModusType" , new int [ ] { 0 , 1 } , "An<seq2seq4repair_space>array<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>possible<seq2seq4repair_space>modus<seq2seq4repair_space>types<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>assigned.<seq2seq4repair_space>(0:<seq2seq4repair_space>Stack,<seq2seq4repair_space>1:<seq2seq4repair_space>Queue,<seq2seq4repair_space>2:<seq2seq4repair_space>QueueStack,<seq2seq4repair_space>3:<seq2seq4repair_space>Tree)" , 0 , ( ( ModusType . values ( ) . length ) - 1 ) ) . setLanguageKey ( "minestuck.config.defaultModusType" ) . getIntList ( ) ; MinestuckConfig . modusMaxSize = MinestuckConfig . config . get ( "Modus" , "modusMaxSize" , 0 , "The<seq2seq4repair_space>max<seq2seq4repair_space>size<seq2seq4repair_space>on<seq2seq4repair_space>a<seq2seq4repair_space>modus.<seq2seq4repair_space>Ignored<seq2seq4repair_space>if<seq2seq4repair_space>the<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>0." ) . setMinValue ( 0 ) . setLanguageKey ( "minestuck.config.modusMaxSize" ) . getInt ( ) ; if ( ( ( MinestuckConfig . initialModusSize ) > ( MinestuckConfig . modusMaxSize ) ) && ( ( MinestuckConfig . modusMaxSize ) > 0 ) ) MinestuckConfig . initialModusSize = MinestuckConfig . modusMaxSize ; String setting = MinestuckConfig . config . get ( "Modus" , "forceAutobalance" , "both" , "This<seq2seq4repair_space>determines<seq2seq4repair_space>if<seq2seq4repair_space>auto-balance<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>forced.<seq2seq4repair_space>'both'<seq2seq4repair_space>if<seq2seq4repair_space>the<seq2seq4repair_space>player<seq2seq4repair_space>should<seq2seq4repair_space>choose,<seq2seq4repair_space>'on'<seq2seq4repair_space>if<seq2seq4repair_space>forced<seq2seq4repair_space>at<seq2seq4repair_space>on,<seq2seq4repair_space>and<seq2seq4repair_space>'off'<seq2seq4repair_space>if<seq2seq4repair_space>forced<seq2seq4repair_space>at<seq2seq4repair_space>off." , new String [ ] { "both" , "off" , "on" } ) . setRequiresWorldRestart ( true ) . setLanguageKey ( "minestuck.config.forceAutobalance" ) . getString ( ) ; <START_BUG> MinestuckConfig . treeModusSetting = ( ( byte ) ( ( setting . equals ( "Both" ) ) ? 0 : setting . equals ( "On" ) ? 1 : 2 ) ) ; <END_BUG> MinestuckConfig . config . getCategory ( "Modus" ) . setLanguageKey ( "minestuck.config.modus" ) ; MinestuckConfig . privateComputers = MinestuckConfig . config . get ( "General" , "privateComputers" , false , "True<seq2seq4repair_space>if<seq2seq4repair_space>computers<seq2seq4repair_space>should<seq2seq4repair_space>only<seq2seq4repair_space>be<seq2seq4repair_space>able<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>by<seq2seq4repair_space>the<seq2seq4repair_space>owner." ) . setLanguageKey ( "minestuck.config.privateComputers" ) . getBoolean ( ) ; MinestuckConfig . privateMessage = MinestuckConfig . config . get ( "General" , "privateComputerMessage" , "You<seq2seq4repair_space>are<seq2seq4repair_space>not<seq2seq4repair_space>allowed<seq2seq4repair_space>to<seq2seq4repair_space>access<seq2seq4repair_space>other<seq2seq4repair_space>players<seq2seq4repair_space>computers." , "The<seq2seq4repair_space>message<seq2seq4repair_space>sent<seq2seq4repair_space>when<seq2seq4repair_space>someone<seq2seq4repair_space>tries<seq2seq4repair_space>to<seq2seq4repair_space>access<seq2seq4repair_space>a<seq2seq4repair_space>computer<seq2seq4repair_space>that<seq2seq4repair_space>they<seq2seq4repair_space>aren't<seq2seq4repair_space>the<seq2seq4repair_space>owner<seq2seq4repair_space>of<seq2seq4repair_space>if<seq2seq4repair_space>'Private<seq2seq4repair_space>Computers'<seq2seq4repair_space>is<seq2seq4repair_space>true." ) . setLanguageKey ( "minestuck.config.privateComputerMessage" ) . getString ( ) ; MinestuckConfig . giveItems = MinestuckConfig . config . get ( "General" , "giveItems" , false , "Setting<seq2seq4repair_space>this<seq2seq4repair_space>to<seq2seq4repair_space>true<seq2seq4repair_space>replaces<seq2seq4repair_space>editmode<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>old<seq2seq4repair_space>Give<seq2seq4repair_space>Items<seq2seq4repair_space>button." ) . setLanguageKey ( "minestuck.config.giveItems" ) . setRequiresWorldRestart ( true ) . getBoolean ( ) ; MinestuckConfig . deployConfigurations = new boolean [ 1 ] ; MinestuckConfig . deployConfigurations [ 0 ] = MinestuckConfig . config . get ( "General" , "deployCard" , false , "Determines<seq2seq4repair_space>if<seq2seq4repair_space>a<seq2seq4repair_space>card<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>captcha<seq2seq4repair_space>card<seq2seq4repair_space>punched<seq2seq4repair_space>on<seq2seq4repair_space>it<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>added<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>deploy<seq2seq4repair_space>list<seq2seq4repair_space>or<seq2seq4repair_space>not." ) . setLanguageKey ( "minestuck.config.deployCard" ) . setRequiresWorldRestart ( true ) . getBoolean ( ) ; MinestuckConfig . cardCost = MinestuckConfig . config . get ( "General" , "cardCost" , 1 , "An<seq2seq4repair_space>integer<seq2seq4repair_space>that<seq2seq4repair_space>determines<seq2seq4repair_space>how<seq2seq4repair_space>much<seq2seq4repair_space>a<seq2seq4repair_space>captchalouge<seq2seq4repair_space>card<seq2seq4repair_space>costs<seq2seq4repair_space>to<seq2seq4repair_space>alchemize" ) . setMinValue ( 1 ) . setLanguageKey ( "minestuck.config.cardCost" ) . setRequiresWorldRestart ( true ) . getInt ( ) ; MinestuckConfig . cardRecipe = MinestuckConfig . config . get ( "General" , "cardRecipe" , true , "Set<seq2seq4repair_space>this<seq2seq4repair_space>to<seq2seq4repair_space>false<seq2seq4repair_space>to<seq2seq4repair_space>remove<seq2seq4repair_space>the<seq2seq4repair_space>captcha<seq2seq4repair_space>card<seq2seq4repair_space>crafting<seq2seq4repair_space>recipe." ) . setLanguageKey ( "minestuck.config.cardRecipe" ) . setRequiresWorldRestart ( true ) . getBoolean ( ) ; MinestuckConfig . generateCruxiteOre = MinestuckConfig . config . get ( "General" , "generateCruxiteOre" , true , "If<seq2seq4repair_space>cruxite<seq2seq4repair_space>ore<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>generated<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>overworld." ) . setRequiresWorldRestart ( true ) . setLanguageKey ( "minestuck.config.generateCruxiteOre" ) . getBoolean ( ) ; MinestuckConfig . globalSession = MinestuckConfig . config . get ( "General" , "globalSession" , true , "Whenether<seq2seq4repair_space>all<seq2seq4repair_space>connetions<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>put<seq2seq4repair_space>into<seq2seq4repair_space>a<seq2seq4repair_space>single<seq2seq4repair_space>session<seq2seq4repair_space>or<seq2seq4repair_space>not." ) . setLanguageKey ( "minestuck.config.globalSession" ) . getBoolean ( ) ; MinestuckConfig . overworldEditRange = MinestuckConfig . config . get ( "General" , "overworldEditRange" , 15 , "A<seq2seq4repair_space>number<seq2seq4repair_space>that<seq2seq4repair_space>determines<seq2seq4repair_space>how<seq2seq4repair_space>far<seq2seq4repair_space>away<seq2seq4repair_space>from<seq2seq4repair_space>the<seq2seq4repair_space>computer<seq2seq4repair_space>an<seq2seq4repair_space>editmode<seq2seq4repair_space>player<seq2seq4repair_space>may<seq2seq4repair_space>be<seq2seq4repair_space>before<seq2seq4repair_space>entry." , 3 , 50 ) . setRequiresWorldRestart ( true ) . setLanguageKey ( "minestuck.config.overworldEditRange" ) . getInt ( ) ; MinestuckConfig . landEditRange = MinestuckConfig . config . get ( "General" , "landEditRange" , 30 , "A<seq2seq4repair_space>number<seq2seq4repair_space>that<seq2seq4repair_space>determines<seq2seq4repair_space>how<seq2seq4repair_space>far<seq2seq4repair_space>away<seq2seq4repair_space>from<seq2seq4repair_space>the<seq2seq4repair_space>center<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>brought<seq2seq4repair_space>land<seq2seq4repair_space>that<seq2seq4repair_space>an<seq2seq4repair_space>editmode<seq2seq4repair_space>player<seq2seq4repair_space>may<seq2seq4repair_space>be<seq2seq4repair_space>after<seq2seq4repair_space>entry." , 3 , 50 ) . setRequiresWorldRestart ( true ) . setLanguageKey ( "minestuck.config.landEditRange" ) . getInt ( ) ; MinestuckConfig . artifactRange = MinestuckConfig . config . get ( "General" , "artifactRange" , 30 , "Radius<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>land<seq2seq4repair_space>brought<seq2seq4repair_space>into<seq2seq4repair_space>the<seq2seq4repair_space>medium." , 3 , 50 ) . setLanguageKey ( "minestuck.config.artifactRange" ) . getInt ( ) ; if ( MinestuckConfig . gameSide . isClient ( ) ) { if ( ( MinestuckConfig . specialCardRenderer ) && ( ! ( GLContext . getCapabilities ( ) . GL_EXT_framebuffer_object ) ) ) { MinestuckConfig . specialCardRenderer = false ; FMLLog . warning ( "[Minestuck]<seq2seq4repair_space>The<seq2seq4repair_space>FBO<seq2seq4repair_space>extension<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>available<seq2seq4repair_space>and<seq2seq4repair_space>is<seq2seq4repair_space>required<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>advanced<seq2seq4repair_space>rendering<seq2seq4repair_space>of<seq2seq4repair_space>captchalouge<seq2seq4repair_space>cards." ) ; } } } @ SideOnly ( Side . CLIENT ) @ SubscribeEvent public void onConfigChanged ( ConfigChangedEvent . OnConfigChangedEvent event ) { } }

Fix:
MinestuckConfig . treeModusSetting = ( ( byte ) ( ( setting . equals ( "both" ) ) ? 0 : setting . equals ( "on" ) ? 1 : 2 ) ) ;