SteamWar/SpigotCore
Archiviert
13
0

Fix replay
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-10-29 13:20:57 +02:00
Ursprung d50398ca25
Commit b147614f49

Datei anzeigen

@ -27,6 +27,7 @@ import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.sql.SQLException; import java.sql.SQLException;
@AllArgsConstructor @AllArgsConstructor
@ -43,7 +44,7 @@ public class Replay {
try { try {
file = File.createTempFile("replay", "replay"); file = File.createTempFile("replay", "replay");
file.deleteOnExit(); file.deleteOnExit();
Files.copy(rs.getBinaryStream("Replay"), file.toPath()); Files.copy(rs.getBinaryStream("Replay"), file.toPath(), StandardCopyOption.REPLACE_EXISTING);
} catch (IOException e) { } catch (IOException e) {
throw new SQLException(e); throw new SQLException(e);
} }