mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Move substitution activation after id loading. This should fix the problem of null for existing object.
This commit is contained in:
1 parent
d105c444ee
commit
fb54ea94c0
1 file changed
+1
-1
@@ -321,11 +321,11 @@ public class PersistentRegistryManager
|
||||
substitutions = Sets.union(snapshotEntry.substitutions, currentRegistry.getActiveSubstitutions());
|
||||
}
|
||||
newRegistry.loadAliases(snapshotEntry.aliases);
|
||||
newRegistry.loadSubstitutions(substitutions);
|
||||
newRegistry.loadBlocked(snapshotEntry.blocked);
|
||||
missing.put(registryName, Maps.<ResourceLocation, Integer>newLinkedHashMap());
|
||||
remaps.put(registryName, Maps.<ResourceLocation, Integer[]>newHashMap());
|
||||
newRegistry.loadIds(snapshotEntry.ids, missing.get(registryName), remaps.get(registryName), currentRegistry, registryName);
|
||||
newRegistry.loadSubstitutions(substitutions);
|
||||
// Load current dummies AFTER the snapshot is loaded
|
||||
newRegistry.loadDummied(snapshotEntry.dummied);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user