Skip to content

Commit

Permalink
Fix remap = false in MixinRegistrySyncManager
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Jun 22, 2024
1 parent 0d06dc7 commit 8863e9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

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;"))
Expand All @@ -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<Identifier, Object2IntMap<Identifier>> map, CallbackInfo ci) {
if (DebugSettings.global().ignoreFabricSyncErrors.getValue()) {
ViaFabricPlus.global().getLogger().warn("Ignoring missing registries from Fabric API");
Expand Down

0 comments on commit 8863e9e

Please sign in to comment.