From 604bf0f6890f5fe2860737e2a9d1834a179bdec7 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Tue, 28 May 2024 17:53:34 -0400 Subject: [PATCH] Prevent ProGuard from optimizing out mixin plugin methods --- proguard.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proguard.pro b/proguard.pro index 8346d85e..b5c9f339 100644 --- a/proguard.pro +++ b/proguard.pro @@ -11,7 +11,9 @@ -keep,allowoptimization public class dev.nolij.zume.api.** { public *; } # public APIs -keepclassmembers class dev.nolij.zume.impl.config.ZumeConfigImpl { public ; } # dont rename config fields --keep,allowoptimization,allowobfuscation class dev.nolij.zume.ZumeMixinPlugin +-keepclassmembers class dev.nolij.zume.ZumeMixinPlugin { + public *; +} -keep @org.spongepowered.asm.mixin.Mixin class * { *; } # dont touch mixins # Forge entrypoints