Merge 1.16 into 1.18
This commit is contained in:
commit
0a72abb519
|
|
@ -153,6 +153,8 @@ public class ModernFixPlatformHooksImpl implements ModernFixPlatformHooks {
|
||||||
noGroupField.setAccessible(true);
|
noGroupField.setAccessible(true);
|
||||||
InjectorGroupInfo noGroup = (InjectorGroupInfo)noGroupField.get(null);
|
InjectorGroupInfo noGroup = (InjectorGroupInfo)noGroupField.get(null);
|
||||||
groupMembersField.set(noGroup, new DummyList<>());
|
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) {
|
} catch(RuntimeException | ReflectiveOperationException e) {
|
||||||
ModernFixMixinPlugin.instance.logger.error("Failed to patch mixin memory leak", e);
|
ModernFixMixinPlugin.instance.logger.error("Failed to patch mixin memory leak", e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user