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:
Sara Freimer authored and GitHub committed 2022-06-08 09:08:55 -07:00
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);