mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Fix typo causing potential error in vine growth. Closes #7406
Sort missing registry dumps by name, making it easier to read.
This commit is contained in:
1 parent
59b4affbe7
commit
37f226eda5
6 files changed
+53
-20
No files matched your search
@@ -164,7 +164,7 @@ public class RegistryEvent<T extends IForgeRegistryEntry<T>> extends GenericEven
|
||||
REMAP
|
||||
}
|
||||
|
||||
public static class Mapping<T extends IForgeRegistryEntry<T>>
|
||||
public static class Mapping<T extends IForgeRegistryEntry<T>> implements Comparable<Mapping<T>>
|
||||
{
|
||||
public final IForgeRegistry<T> registry;
|
||||
private final IForgeRegistry<T> pool;
|
||||
@@ -231,6 +231,14 @@ public class RegistryEvent<T extends IForgeRegistryEntry<T>> extends GenericEven
|
||||
{
|
||||
return target;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Mapping<T> o)
|
||||
{
|
||||
int ret = this.registry.getRegistryName().compareNamespaced(o.registry.getRegistryName());
|
||||
if (ret ==0) ret = this.key.compareNamespaced(o.key);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user