mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Fire registry events in the order vanilla registers to registries (#8677)
Custom registries are still fired in alphabetical order, after all vanilla registries. Move forge's data_serializers registry to forge namespace.
This commit is contained in:
1 parent
0c35436217
commit
9b144f4541
5 files changed
+25
-12
No files matched your search
@@ -55,6 +55,7 @@ class NamespacedWrapper<T> extends MappedRegistry<T> implements ILockableRegistr
|
||||
throw new IllegalStateException("Can not register to a locked registry. Modder should use Forge Register methods.");
|
||||
|
||||
Validate.notNull(value);
|
||||
markKnown();
|
||||
this.elementsLifecycle = this.elementsLifecycle.add(lifecycle);
|
||||
|
||||
T oldValue = get(key);
|
||||
|
||||
Reference in new issue
Block a user