Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Delete copying temporary version of config.toml into temporary files
Fixes #999
Dieser Commit ist enthalten in:
Ursprung
6a125bd08b
Commit
2fa9f37481
@ -451,17 +451,6 @@ public class VelocityConfiguration implements ProxyConfig {
|
|||||||
.build();
|
.build();
|
||||||
config.load();
|
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
|
// TODO: migrate this on Velocity Polymer
|
||||||
double configVersion;
|
double configVersion;
|
||||||
try {
|
try {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren