Fix PL update error
This commit is contained in:
parent
cffce30a5d
commit
0228b3ecac
@ -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 New Issue
Block a user