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