mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Fix comparison of custom ParticleRenderTypes leading to broken particle effects. (#8385)
This commit is contained in:
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;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user