Skip to content

Commit

Permalink
Prevent ProGuard from optimizing out mixin plugin methods
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed May 28, 2024
1 parent 20cbb60 commit 604bf0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proguard.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

-keep,allowoptimization public class dev.nolij.zume.api.** { public *; } # public APIs
-keepclassmembers class dev.nolij.zume.impl.config.ZumeConfigImpl { public <fields>; } # 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
Expand Down

0 comments on commit 604bf0f

Please sign in to comment.