mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
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:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user