Used new methods for recipes with OreDictionary inputs

This commit is contained in:
Alexander Anishin committed 2024-03-16 12:41:10 +03:00
1 parent d4c7ea7198
commit 269e1ed6c7
2 files changed
+61 -65

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ public class OreDict {
public static final ItemStack preference(String... oredictKeys) {
for (String key : oredictKeys) {
List<ItemStack> ores = OreDictionary.getOres(key);
if (ores != null && ores.size() > 0) return ores.get(0);
if (ores != null && !ores.isEmpty()) return ores.get(0);
}
throw new IllegalArgumentException("Can't find any oreDictionary entry among " + Arrays.toString(oredictKeys));
}