diff --git a/slimeworldmanager-classmodifier/pom.xml b/slimeworldmanager-classmodifier/pom.xml
index 189fabe..4c7e694 100644
--- a/slimeworldmanager-classmodifier/pom.xml
+++ b/slimeworldmanager-classmodifier/pom.xml
@@ -9,15 +9,29 @@
slimeworldmanager-classmodifier
+
+
+ minecraft-libraries
+ Minecraft Libraries
+ https://libraries.minecraft.net
+
+
+
org.javassist
javassist
3.25.0-GA
+
+ com.mojang
+ datafixerupper
+ 1.0.20
+ provided
+
org.spigotmc
- spigot
+ spigot-api
1.14.4-R0.1-SNAPSHOT
provided
diff --git a/slimeworldmanager-classmodifier/src/main/java/com/grinderwolf/swm/clsm/NMSTransformer.java b/slimeworldmanager-classmodifier/src/main/java/com/grinderwolf/swm/clsm/NMSTransformer.java
index 8248bc0..e6951be 100644
--- a/slimeworldmanager-classmodifier/src/main/java/com/grinderwolf/swm/clsm/NMSTransformer.java
+++ b/slimeworldmanager-classmodifier/src/main/java/com/grinderwolf/swm/clsm/NMSTransformer.java
@@ -1,6 +1,6 @@
package com.grinderwolf.swm.clsm;
-import javassist.ByteArrayClassPath;
+import javassist.LoaderClassPath;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
@@ -145,7 +145,7 @@ public byte[] transform(ClassLoader classLoader, String className, Class> clas
try {
ClassPool pool = ClassPool.getDefault();
- pool.appendClassPath(new ByteArrayClassPath(fixedClassName, bytes));
+ pool.appendClassPath(new LoaderClassPath(classLoader));
CtClass ctClass = pool.get(fixedClassName);
for (Change change : changes.get(className)) {