Fix PL update error

This commit is contained in:
libraryaddict 2021-02-25 04:29:39 +13:00
parent cffce30a5d
commit 0228b3ecac

View File

@ -424,10 +424,11 @@ public class DisguiseUtilities {
getFile.setAccessible(true);
File theirFile = (File) getFile.invoke(ProtocolLibrary.getPlugin());
dest = new File(Bukkit.getUpdateFolderFile(), theirFile.getName());
dest = new File(Bukkit.getUpdateFolderFile().getParentFile(), theirFile.getName());
}
if (!dest.exists()) {
dest.getParentFile().mkdirs();
dest.createNewFile();
}