Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-23 23:00:35 +01:00
Fix startup.
Dieser Commit ist enthalten in:
Ursprung
d7aebfdc20
Commit
64380de497
@ -213,7 +213,7 @@ public abstract class AnnotatedConfig {
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes list of strings to file
|
||||
* Writes list of strings to file.
|
||||
*
|
||||
* @param lines list of strings to write
|
||||
* @param to Path of file where lines should be written
|
||||
@ -225,7 +225,7 @@ public abstract class AnnotatedConfig {
|
||||
throw new IllegalArgumentException("lines cannot be empty");
|
||||
}
|
||||
|
||||
Path temp = to.getParent().resolve(to.getFileName().toString() + "__tmp");
|
||||
Path temp = to.toAbsolutePath().getParent().resolve(to.getFileName().toString() + "__tmp");
|
||||
Files.write(temp, lines, StandardCharsets.UTF_8, StandardOpenOption.CREATE);
|
||||
try {
|
||||
Files.move(temp, to, StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.ATOMIC_MOVE);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren