Fix infinite loop in RecipeSorter

If recipe is multiple levels of inheritance from Object and not categorized, cls=cls.getSuperclass(); needs to be repeated more than once. It must therefore be moved to inside the while loop.
This commit is contained in:
planetguy32 committed 2014-04-12 20:04:02 -07:00
1 parent 2cef9c5cb2
commit fd59ab261f
1 file changed
+1 -1
@@ -174,9 +174,9 @@ public class RecipeSorter implements Comparator<IRecipe>
if (ret == null)
{
cls = cls.getSuperclass();
while (cls != Object.class)
{
cls = cls.getSuperclass();
ret = categories.get(cls);
if (ret != null)
{