Fix comparison of custom ParticleRenderTypes leading to broken particle effects. (#8385)

This commit is contained in:
Dennis C authored and GitHub committed 2022-01-30 14:26:03 +00:00
1 parent af87677516
commit 5c9258491f
2 files changed
+34 -1

No files matched your search

@@ -1074,7 +1074,11 @@ public class ForgeHooksClient
{
return vanillaComparator.compare(typeOne, typeTwo);
}
return Boolean.compare(vanillaTwo, vanillaOne);
if (!vanillaOne && !vanillaTwo)
{
return Integer.compare(System.identityHashCode(typeOne), System.identityHashCode(typeTwo));
}
return vanillaOne ? -1 : 1;
};
}
}