mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +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);
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue