@@ -5305,6 +5305,7 @@ void addRecipes() {
53055305 }
53065306 };
53075307
5308+ public static final Features [] VALUES = values ();
53085309 private static final String [] dyeOres = { "dyeBlack" , "dyeRed" , "dyeGreen" , "dyeBrown" , "dyeBlue" , "dyePurple" ,
53095310 "dyeCyan" , "dyeLightGray" , "dyeGray" , "dyePink" , "dyeLime" , "dyeYellow" , "dyeLightBlue" , "dyeMagenta" ,
53105311 "dyeOrange" , "dyeWhite" };
@@ -5320,7 +5321,7 @@ static void init() {
53205321 private static void loadBlocks () {
53215322 Chisel .logger .info ("Loading blocks..." );
53225323 int num = 0 ;
5323- for (Features f : values () ) {
5324+ for (Features f : VALUES ) {
53245325 if (f .enabled ()) {
53255326 f .addBlocks ();
53265327 ++num ;
@@ -5337,7 +5338,7 @@ private static void loadBlocks() {
53375338 private static void loadItems () {
53385339 Chisel .logger .info ("Loading items..." );
53395340 int num = 0 ;
5340- for (Features f : values () ) {
5341+ for (Features f : VALUES ) {
53415342 if (f .enabled ()) {
53425343 f .addItems ();
53435344 ++num ;
@@ -5351,7 +5352,7 @@ private static void loadItems() {
53515352 private static void loadRecipes () {
53525353 Chisel .logger .info ("Loading recipes..." );
53535354 int num = 0 ;
5354- for (Features f : values () ) {
5355+ for (Features f : VALUES ) {
53555356 if (f .enabled ()) {
53565357 if (f .needsMetaRecipes ()) {
53575358 for (int i = 0 ; i < 16 ; i ++) {
@@ -5387,7 +5388,7 @@ private static void logDisabled(Features f) {
53875388 }
53885389
53895390 public static boolean oneModdedFeatureLoaded () {
5390- for (Features f : values () ) {
5391+ for (Features f : VALUES ) {
53915392 if (f .hasRequiredMod ()) {
53925393 return true ;
53935394 }
0 commit comments