From 77928a3d6562b23ed262907921100b168c94292e Mon Sep 17 00:00:00 2001 From: asie Date: Sat, 26 Jan 2019 14:44:59 +0100 Subject: [PATCH] fix dedicated server registry handling bug --- .../net/fabricmc/fabric/mixin/registry/MixinIdRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } }