mirror of
https://github.com/GTNewHorizons/Advanced-Botany.git
synced 2026-11-18 19:29:15 +00:00
Used new methods for recipes with OreDictionary inputs
This commit is contained in:
1 parent
d4c7ea7198
commit
269e1ed6c7
2 files changed
+61
-65
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user