mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +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
@@ -52,6 +52,7 @@ class NamespacedDefaultedWrapper<T> extends DefaultedRegistry<T> implements ILoc
|
||||
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 = this.delegate.getRaw(key.location());
|
||||
|
||||
Reference in new issue
Block a user