Skip to content

Commit

Permalink
Fix ProGuard removing reload listener methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Feb 9, 2025
1 parent 2ac9fab commit e99c5af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions proguard.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class guideme.mixins.** { *; }
4 changes: 2 additions & 2 deletions src/main/java/guideme/internal/GuideReloadListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GuideReloadListener extends SimplePreparableReloadListener<GuideReloadList
private static final Gson GSON = new Gson();

@Override
protected Result prepare(ResourceManager resourceManager, ProfilerFiller profiler) {
public Result prepare(ResourceManager resourceManager, ProfilerFiller profiler) {
profiler.startTick();
var pages = new IdentityHashMap<ResourceLocation, Map<ResourceLocation, ParsedGuidePage>>();

Expand All @@ -47,7 +47,7 @@ protected Result prepare(ResourceManager resourceManager, ProfilerFiller profile
}

@Override
protected void apply(Result result, ResourceManager resourceManager, ProfilerFiller profiler) {
public void apply(Result result, ResourceManager resourceManager, ProfilerFiller profiler) {
profiler.startTick();

LOG.info("Data driven guides: {}", result.dataDrivenGuides.keySet());
Expand Down

0 comments on commit e99c5af

Please sign in to comment.