mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-25 02:54:21 +00:00
Fix injectors without groups being retained (#99)
Avoids leaking memory after a mixin has been applied
This commit is contained in:
1 parent
515e6a2d74
commit
3bb4cbfaf8
1 file changed
+2
-2
@@ -49,7 +49,7 @@ public class InjectorGroupInfo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static final InjectorGroupInfo NO_GROUP = new InjectorGroupInfo("NONE", true);
|
||||
private final InjectorGroupInfo noGroup = new InjectorGroupInfo("NONE", true);
|
||||
|
||||
@Override
|
||||
public InjectorGroupInfo get(Object key) {
|
||||
@@ -94,7 +94,7 @@ public class InjectorGroupInfo {
|
||||
*/
|
||||
public InjectorGroupInfo parseGroup(AnnotationNode annotation, String defaultGroup) {
|
||||
if (annotation == null) {
|
||||
return InjectorGroupInfo.Map.NO_GROUP;
|
||||
return noGroup;
|
||||
}
|
||||
|
||||
String name = Annotations.<String>getValue(annotation, "name");
|
||||
|
||||
Reference in new issue
Block a user