@@ -100,39 +100,39 @@ private static void addGeocentricQuartzCrystalOre(final Map<String, ItemStack> r
100100 private static void addOres (final Map <String , ItemStack > rawOres ) {
101101 List <ItemStack > dustDraconium = OreDictionary .getOres ("dustDraconium" , false );
102102 if (!dustDraconium .isEmpty ()) {
103- rawOres .put ("dustDraconium" , ItemUtils .copyStackWithSize (dustDraconium .get ( 0 ), ORE_COUNT ));
103+ rawOres .put ("dustDraconium" , ItemUtils .copyStackWithSize (dustDraconium .getFirst ( ), ORE_COUNT ));
104104 }
105105 List <ItemStack > blockSkyStone = OreDictionary .getOres ("blockSkyStone" , false );
106106 if (!blockSkyStone .isEmpty ()) {
107- rawOres .put ("blockSkyStone" , ItemUtils .copyStackWithSize (blockSkyStone .get ( 0 ), 8 ));
107+ rawOres .put ("blockSkyStone" , ItemUtils .copyStackWithSize (blockSkyStone .getFirst ( ), 8 ));
108108 }
109109 List <ItemStack > crystalLitherite = OreDictionary .getOres ("crystalLitherite" , false );
110110 if (!crystalLitherite .isEmpty ()) {
111- rawOres .put ("crystalLitherite" , ItemUtils .copyStackWithSize (crystalLitherite .get ( 0 ), 8 ));
111+ rawOres .put ("crystalLitherite" , ItemUtils .copyStackWithSize (crystalLitherite .getFirst ( ), 8 ));
112112 }
113113 List <ItemStack > crystalErodium = OreDictionary .getOres ("crystalErodium" , false );
114114 if (!crystalErodium .isEmpty ()) {
115- rawOres .put ("crystalErodium" , ItemUtils .copyStackWithSize (crystalErodium .get ( 0 ), 6 ));
115+ rawOres .put ("crystalErodium" , ItemUtils .copyStackWithSize (crystalErodium .getFirst ( ), 6 ));
116116 }
117117 List <ItemStack > crystalLonsdaleite = OreDictionary .getOres ("crystalLonsdaleite" , false );
118118 if (!crystalLonsdaleite .isEmpty ()) {
119- rawOres .put ("crystalLonsdaleite" , ItemUtils .copyStackWithSize (crystalLonsdaleite .get ( 0 ), 4 ));
119+ rawOres .put ("crystalLonsdaleite" , ItemUtils .copyStackWithSize (crystalLonsdaleite .getFirst ( ), 4 ));
120120 }
121121 List <ItemStack > crystalKyronite = OreDictionary .getOres ("crystalKyronite" , false );
122122 if (!crystalKyronite .isEmpty ()) {
123- rawOres .put ("crystalKyronite" , ItemUtils .copyStackWithSize (crystalKyronite .get ( 0 ), 4 ));
123+ rawOres .put ("crystalKyronite" , ItemUtils .copyStackWithSize (crystalKyronite .getFirst ( ), 4 ));
124124 }
125125 List <ItemStack > crystalPladium = OreDictionary .getOres ("crystalPladium" , false );
126126 if (!crystalPladium .isEmpty ()) {
127- rawOres .put ("crystalPladium" , ItemUtils .copyStackWithSize (crystalPladium .get ( 0 ), 4 ));
127+ rawOres .put ("crystalPladium" , ItemUtils .copyStackWithSize (crystalPladium .getFirst ( ), 4 ));
128128 }
129129 List <ItemStack > crystalIonite = OreDictionary .getOres ("crystalIonite" , false );
130130 if (!crystalIonite .isEmpty ()) {
131- rawOres .put ("crystalIonite" , ItemUtils .copyStackWithSize (crystalIonite .get ( 0 ), 4 ));
131+ rawOres .put ("crystalIonite" , ItemUtils .copyStackWithSize (crystalIonite .getFirst ( ), 4 ));
132132 }
133133 List <ItemStack > crystalAethium = OreDictionary .getOres ("crystalAethium" , false );
134134 if (!crystalAethium .isEmpty ()) {
135- rawOres .put ("crystalAethium" , ItemUtils .copyStackWithSize (crystalAethium .get ( 0 ), 2 ));
135+ rawOres .put ("crystalAethium" , ItemUtils .copyStackWithSize (crystalAethium .getFirst ( ), 2 ));
136136 }
137137 rawOres .put ("glowstone_dust" , new ItemStack (Items .GLOWSTONE_DUST , 24 ));
138138 }
@@ -148,7 +148,7 @@ public void preInit(final DynamicMachine machine) {
148148 .forEach (oreName -> {
149149 NonNullList <ItemStack > ores = OreDictionary .getOres (oreName );
150150 if (!ores .isEmpty () && !oreName .equals ("rawOreAluminium" )) {
151- ItemStack stack = ores .get ( 0 ).copy ();
151+ ItemStack stack = ores .getFirst ( ).copy ();
152152 stack .setCount (ORE_COUNT );
153153 rawOres .put (oreName , stack );
154154 }
0 commit comments