Skip to content

Commit

Permalink
Don't log error if NO_GROUP field is missing
Browse files Browse the repository at this point in the history
Fixes error message in log with Connector
  • Loading branch information
embeddedt committed Oct 29, 2023
1 parent 89dab59 commit 5d984f6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ public void injectPlatformSpecificHacks() {
noGroupField.setAccessible(true);
InjectorGroupInfo noGroup = (InjectorGroupInfo)noGroupField.get(null);
groupMembersField.set(noGroup, new DummyList<>());
} catch(NoSuchFieldException ignored) {
// Connector will replace FML's mixin with one which already has the fix, don't bother logging
} catch(RuntimeException | ReflectiveOperationException e) {
ModernFixMixinPlugin.instance.logger.error("Failed to patch mixin memory leak", e);
}
Expand Down

0 comments on commit 5d984f6

Please sign in to comment.