Skip to content

Commit 5d984f6

Browse files
committed
Don't log error if NO_GROUP field is missing
Fixes error message in log with Connector
1 parent 89dab59 commit 5d984f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

forge/src/main/java/org/embeddedt/modernfix/platform/forge/ModernFixPlatformHooksImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ public void injectPlatformSpecificHacks() {
187187
noGroupField.setAccessible(true);
188188
InjectorGroupInfo noGroup = (InjectorGroupInfo)noGroupField.get(null);
189189
groupMembersField.set(noGroup, new DummyList<>());
190+
} catch(NoSuchFieldException ignored) {
191+
// Connector will replace FML's mixin with one which already has the fix, don't bother logging
190192
} catch(RuntimeException | ReflectiveOperationException e) {
191193
ModernFixMixinPlugin.instance.logger.error("Failed to patch mixin memory leak", e);
192194
}

0 commit comments

Comments
 (0)