From fd59ab261f363bff18a2a2a7d10b9534cfdee1ab Mon Sep 17 00:00:00 2001 From: planetguy32 Date: Sat, 12 Apr 2014 20:04:02 -0700 Subject: [PATCH] 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. --- src/main/java/net/minecraftforge/oredict/RecipeSorter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/oredict/RecipeSorter.java b/src/main/java/net/minecraftforge/oredict/RecipeSorter.java index 9f80b26ad2..cf8f1f16e0 100644 --- a/src/main/java/net/minecraftforge/oredict/RecipeSorter.java +++ b/src/main/java/net/minecraftforge/oredict/RecipeSorter.java @@ -174,9 +174,9 @@ public class RecipeSorter implements Comparator if (ret == null) { - cls = cls.getSuperclass(); while (cls != Object.class) { + cls = cls.getSuperclass(); ret = categories.get(cls); if (ret != null) {