Don't log error if NO_GROUP field is missing
Fixes error message in log with Connector
This commit is contained in:
parent
89dab59980
commit
5d984f653e
|
|
@ -187,6 +187,8 @@ public class ModernFixPlatformHooksImpl implements ModernFixPlatformHooks {
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user