diff --git a/src/main/java/net/fabricmc/fabric/mixin/registry/MixinIdRegistry.java b/src/main/java/net/fabricmc/fabric/mixin/registry/MixinIdRegistry.java index 07c4a72ea..8efd9aae7 100644 --- a/src/main/java/net/fabricmc/fabric/mixin/registry/MixinIdRegistry.java +++ b/src/main/java/net/fabricmc/fabric/mixin/registry/MixinIdRegistry.java @@ -71,7 +71,7 @@ public abstract class MixinIdRegistry implements RemappableRegistry, Listenab IdRegistry registry = (IdRegistry) (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)); } } }