diff --git a/Client/src/main/java/de/com/baseband/prod/LoadHandler.java b/Client/src/main/java/de/com/baseband/prod/LoadHandler.java index 87efe5d..14cd75f 100644 --- a/Client/src/main/java/de/com/baseband/prod/LoadHandler.java +++ b/Client/src/main/java/de/com/baseband/prod/LoadHandler.java @@ -12,7 +12,7 @@ public class LoadHandler { public static void loaded(Map data) { LoadHandler.data = TCN.readMap(data); try { - Class.forName("de.com.baseband.launcher.Tweaker").getDeclaredMethod("loaded", Class.class).invoke(null, BaseBand.class); + Class.forName("de.com.baseband.launcher.Tweaker").getMethod("loaded", Class.class).invoke(null, BaseBand.class); } catch (Exception e) { throw new RuntimeException(e); } diff --git a/Loader/src/main/java/de/com/baseband/launcher/Loader.java b/Loader/src/main/java/de/com/baseband/launcher/Loader.java index 5c4b6d0..a4bc8b3 100644 --- a/Loader/src/main/java/de/com/baseband/launcher/Loader.java +++ b/Loader/src/main/java/de/com/baseband/launcher/Loader.java @@ -65,10 +65,10 @@ public class Loader implements Util { public static void run() { AccessKiller.killReflectionFor( - Tweaker.class, - Loader.class, CustomClassLoader.class, CustomClassLoader.CustomMixinServer.class); + AccessKiller.killFieldAccess(Loader.class); + AccessKiller.killMethodAccess(Loader.class); TCN preOptions; try { @@ -234,6 +234,7 @@ public class Loader implements Util { public static void loaded(Class baseBandClass) { LOGGER.info("BaseBand was loaded successfully."); Loader.baseBandClass = baseBandClass; + AccessKiller.killReflectionFor(Tweaker.class); } private static TCN getData() throws Exception {