From 8863e9eaad2ae612a68f65375575cccc208e7e1c Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Sat, 22 Jun 2024 16:22:55 +0200 Subject: [PATCH] Fix remap = false in MixinRegistrySyncManager --- .../mixin/compat/fabricapi/MixinRegistrySyncManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/fabricapi/MixinRegistrySyncManager.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/fabricapi/MixinRegistrySyncManager.java index 04d6037c..d8a5f4f8 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/fabricapi/MixinRegistrySyncManager.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/fabricapi/MixinRegistrySyncManager.java @@ -35,7 +35,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import java.util.Map; -@Mixin(value = RegistrySyncManager.class, remap = false) +@Mixin(RegistrySyncManager.class) public abstract class MixinRegistrySyncManager { @Redirect(method = "createAndPopulateRegistryMap", at = @At(value = "INVOKE", target = "Lnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;")) @@ -48,7 +48,7 @@ public abstract class MixinRegistrySyncManager { } } - @Inject(method = "checkRemoteRemap", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;)V", ordinal = 0), cancellable = true) + @Inject(method = "checkRemoteRemap", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;)V", ordinal = 0), cancellable = true, remap = false) private static void ignoreFabricSyncErrors(Map> map, CallbackInfo ci) { if (DebugSettings.global().ignoreFabricSyncErrors.getValue()) { ViaFabricPlus.global().getLogger().warn("Ignoring missing registries from Fabric API");