Skip to content

Commit

Permalink
Fix double transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Sep 19, 2023
1 parent b8d43aa commit b78bfe0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ public static void init() throws Throwable {
"startLoadingScreen", boolean.class
), true);

final Class<?> entrypointUtils = Class.forName(ENTRYPOINT_UTILS.replace('/', '.'));
Agents.getInstrumentation().addTransformer(
(loader, className, classBeingRedefined, protectionDomain, classfileBuffer) ->
MlsTransformers.instrumentClass(className, classfileBuffer),
true
);
Agents.getInstrumentation().retransformClasses(Class.forName(ENTRYPOINT_UTILS.replace('/', '.')));
Agents.getInstrumentation().retransformClasses(entrypointUtils);
}

static {
Expand Down

0 comments on commit b78bfe0

Please sign in to comment.