mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Fix PL update error
This commit is contained in:
parent
cffce30a5d
commit
0228b3ecac
1 changed files with 2 additions and 1 deletions
|
@ -424,10 +424,11 @@ public class DisguiseUtilities {
|
||||||
getFile.setAccessible(true);
|
getFile.setAccessible(true);
|
||||||
|
|
||||||
File theirFile = (File) getFile.invoke(ProtocolLibrary.getPlugin());
|
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()) {
|
if (!dest.exists()) {
|
||||||
|
dest.getParentFile().mkdirs();
|
||||||
dest.createNewFile();
|
dest.createNewFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue