Fix a null error

This commit is contained in:
libraryaddict 2021-01-16 01:18:31 +13:00
parent 65d80b71f2
commit 4f2d54b844

View File

@ -420,6 +420,10 @@ public class DisguiseUtilities {
dest = new File(Bukkit.getUpdateFolderFile(), theirFile.getName()); dest = new File(Bukkit.getUpdateFolderFile(), theirFile.getName());
} }
if (!dest.exists()) {
dest.createNewFile();
}
// We're connecting to jenkins's API for ProtocolLib // We're connecting to jenkins's API for ProtocolLib
URL url = new URL("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target/ProtocolLib.jar"); URL url = new URL("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target/ProtocolLib.jar");
// Creating a connection // Creating a connection