diff --git a/core/src/main/java/com/rettichlp/unicacityaddon/base/io/api/API.java b/core/src/main/java/com/rettichlp/unicacityaddon/base/io/api/API.java index b42572f2..933cb550 100644 --- a/core/src/main/java/com/rettichlp/unicacityaddon/base/io/api/API.java +++ b/core/src/main/java/com/rettichlp/unicacityaddon/base/io/api/API.java @@ -767,8 +767,7 @@ private long getRandomNumber(byte[] bytes) { public File getModFile() { String addonName = this.unicacityAddon.addonInfo().getFileName(); - File file = new File(this.unicacityAddon.fileService().getMinecraftDir().getAbsolutePath() + "/labymod-neo/addons/" + addonName); - return file; + return new File(Laby.labyAPI().labyModLoader().getGameDirectory().toString() + "/labymod-neo/addons/" + addonName); } public static T find(Collection elements, Predicate predicate) {