refactor: Address a few TODO 1.18's

(cherry picked from commit 0b77932b6e46c825d78b8c7ccae2a68ad890564e)
Dieser Commit ist enthalten in:
NotMyFault 2021-12-21 19:00:59 +01:00 committet von dordsor21
Ursprung 28f3bc61ea
Commit 94b392dd39
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
2 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -305,8 +305,7 @@ public class Fawe {
br.close();
this.version = FaweVersion.tryParse(versionString, commitString, dateString);
Settings.IMP.DATE = new Date(100 + version.year, version.month, version.day).toString();
//TODO 1.18 revisit
Settings.IMP.BUILD = "https://ci.athion.net/job/FastAsyncWorldEdit-1.17/" + version.build;
Settings.IMP.BUILD = "https://ci.athion.net/job/FastAsyncWorldEdit/" + version.build;
Settings.IMP.COMMIT = "https://github.com/IntellectualSites/FastAsyncWorldEdit/commit/" + Integer.toHexString(version.hash);
} catch (Throwable ignored) {
}

Datei anzeigen

@ -33,7 +33,6 @@ import java.io.InputStreamReader;
import java.lang.reflect.Type;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.security.AccessControlException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@ -370,8 +369,7 @@ public class TextureUtil implements TextureHolder {
"folder with a `.minecraft/versions` jar in it.");
LOGGER.error("If the file exists, please make sure the server has read access to the directory.");
}
//TODO 1.18 AccessControlException is deprecated and scheduled for removal as of Java 17. Exchange on sight to be prepared for future releases
} catch (AccessControlException e) {
} catch (SecurityException e) {
LOGGER.error(
"Could not download asset jar. It's likely your file permission are setup improperly and do not allow fetching data from the Mojang servers.");
LOGGER.error(