diff --git a/src/agent/java/org/spongepowered/tools/agent/MixinAgent.java b/src/agent/java/org/spongepowered/tools/agent/MixinAgent.java index 7821ded06..82e9d8727 100644 --- a/src/agent/java/org/spongepowered/tools/agent/MixinAgent.java +++ b/src/agent/java/org/spongepowered/tools/agent/MixinAgent.java @@ -78,7 +78,7 @@ public byte[] transform(ClassLoader loader, String className, Class classBein try { MixinAgent.log(Level.INFO, "Redefining class {}", className); - return MixinAgent.this.classTransformer.transformClassBytes(null, className, classfileBuffer); + return MixinAgent.this.classTransformer.transformClassBytes(null, className.replace('/', '.'), classfileBuffer); } catch (Throwable th) { MixinAgent.log(Level.ERROR, "Error while re-transforming class {}", className, th); return MixinAgent.ERROR_BYTECODE;