Big warning for recipe types found without being registered, it turns out this is pretty severe, modders need to fix it.

This commit is contained in:
cpw 2016-06-26 12:52:14 -04:00
parent fde90973c3
commit 0b1e94babd
1 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,9 @@ public class RecipeSorter implements Comparator<IRecipe>
{ {
public enum Category public enum Category
{ {
/**
* Do not use UNKNOWN - it is for recipe types with no clear driver
*/
UNKNOWN, UNKNOWN,
SHAPELESS, SHAPELESS,
SHAPED SHAPED
@ -231,7 +234,7 @@ public class RecipeSorter implements Comparator<IRecipe>
{ {
if (!warned.contains(cls)) if (!warned.contains(cls))
{ {
FMLLog.info(" Unknown recipe class! %s Modder please refer to %s", cls.getName(), RecipeSorter.class.getName()); FMLLog.bigWarning("Unknown recipe class! %s Modders need to register their recipe types with %s", cls.getName(), RecipeSorter.class.getName());
warned.add(cls); warned.add(cls);
} }
cls = cls.getSuperclass(); cls = cls.getSuperclass();