3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Delete copying temporary version of config.toml into temporary files

Fixes #999
Dieser Commit ist enthalten in:
Andrew Steinborn 2023-04-09 12:18:02 -04:00
Ursprung 6a125bd08b
Commit 2fa9f37481

Datei anzeigen

@ -451,17 +451,6 @@ public class VelocityConfiguration implements ProxyConfig {
.build();
config.load();
// Create temporary default configuration
File tmpFile = File.createTempFile("default-config", null);
tmpFile.deleteOnExit();
// Copy over default file to tmp location
try (InputStream in = defaultConfigLocation.openStream()) {
Files.copy(in, tmpFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
}
CommentedFileConfig defaultConfig = CommentedFileConfig.of(tmpFile, TomlFormat.instance());
defaultConfig.load();
// TODO: migrate this on Velocity Polymer
double configVersion;
try {