Demote crash to warning on bad Shaped/Shapless recipes and add a more informative error message.

This commit is contained in:
Chicken-Bones committed 2015-02-26 09:32:43 +10:00
1 parent 277c8b5cc0
commit 922ec6b1cb
4 files changed
+18 -15

No files matched your search

+1 -1
View File
@@ -341,7 +341,7 @@ public class NEIServerUtils
if (obj instanceof List)
return ((List<ItemStack>) obj).toArray(new ItemStack[0]);
throw new ClassCastException("not an ItemStack, ItemStack[] or List<ItemStack?");
throw new ClassCastException(obj+" not an ItemStack, ItemStack[] or List<ItemStack?");
}
public static List<Integer> getRange(final int start, final int end) {