@@ -59,6 +59,8 @@ public static String sanitize(String mixinClassName) {
5959 private final Set <String > mixinOptions = new ObjectOpenHashSet <>();
6060 private final Map <String , String > mixinsMissingMods = new Object2ObjectOpenHashMap <>();
6161
62+ public static boolean isFabric = false ;
63+
6264 public Map <String , String > getPermanentlyDisabledMixins () {
6365 return mixinsMissingMods ;
6466 }
@@ -71,6 +73,8 @@ private void scanForAndBuildMixinOptions() {
7173 if (stream == null )
7274 continue ;
7375 try (Reader reader = new BufferedReader (new InputStreamReader (stream , StandardCharsets .UTF_8 ))) {
76+ if (configFile .contains ("fabric" ))
77+ isFabric = true ;
7478 JsonObject configObject = (JsonObject )new JsonParser ().parse (reader );
7579 JsonArray mixinList = configObject .getAsJsonArray ("mixins" );
7680 String packageName = configObject .get ("package" ).getAsString ().replace ('.' , '/' );
@@ -192,6 +196,9 @@ private ModernFixEarlyConfig(File file) {
192196 disableIfModPresent ("mixin.perf.faster_texture_stitching" , "optifine" );
193197 disableIfModPresent ("mixin.perf.datapack_reload_exceptions" , "cyanide" );
194198 disableIfModPresent ("mixin.perf.faster_texture_loading" , "stitch" , "optifine" , "changed" );
199+ if (isFabric ) {
200+ disableIfModPresent ("mixin.bugfix.packet_leak" , "memoryleakfix" );
201+ }
195202 }
196203
197204 private void disableIfModPresent (String configName , String ... ids ) {
0 commit comments