Revert "Another fix for registry substitutions. Closes #3212"
This reverts commit ec2977afc9
.
This commit is contained in:
parent
6e8c05343c
commit
5f06c95cfa
|
@ -181,7 +181,6 @@ public class FMLControlledNamespacedRegistry<I extends IForgeRegistryEntry<I>> e
|
|||
this.persistentSubstitutions.clear();
|
||||
this.persistentSubstitutions.putAll(otherRegistry.getPersistentSubstitutions());
|
||||
this.activeSubstitutions.clear();
|
||||
this.substitutionOriginals.clear();
|
||||
this.dummiedLocations.clear();
|
||||
this.dummiedLocations.addAll(otherRegistry.dummiedLocations);
|
||||
|
||||
|
@ -190,11 +189,7 @@ public class FMLControlledNamespacedRegistry<I extends IForgeRegistryEntry<I>> e
|
|||
|
||||
for (I thing : otherRegistry.typeSafeIterable())
|
||||
{
|
||||
ResourceLocation name = otherRegistry.getNameForObject(thing);
|
||||
if (otherRegistry.activeSubstitutions.containsKey(name)) // If this is subed, use the orig, the loop below will reinstate the sub.
|
||||
addObjectRaw(otherRegistry.getId(thing), name, otherRegistry.substitutionOriginals.get(name));
|
||||
else
|
||||
addObjectRaw(otherRegistry.getId(thing), name, thing);
|
||||
addObjectRaw(otherRegistry.getId(thing), otherRegistry.getNameForObject(thing), thing);
|
||||
}
|
||||
for (ResourceLocation resloc : otherRegistry.activeSubstitutions.keySet())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue