fix dedicated server registry handling bug

This commit is contained in:
asie 2019-01-26 14:44:59 +01:00
parent 833a3e9fb3
commit 77928a3d65

View file

@ -71,7 +71,7 @@ public abstract class MixinIdRegistry<T> implements RemappableRegistry, Listenab
IdRegistry<Object> registry = (IdRegistry<Object>) (Object) this;
if (listeners != null) {
for (RegistryListener listener : listeners) {
listener.beforeRegistryRegistration(registry, id, identifier, object, !registry.contains(identifier));
listener.beforeRegistryRegistration(registry, id, identifier, object, !objectMap.containsKey(identifier));
}
}
}