SteamWar/SpigotCore
Archiviert
13
0

Add SaveFromBytes

Dieser Commit ist enthalten in:
Chaoscaot 2021-01-07 17:04:51 +01:00
Ursprung 40c2462d5b
Commit c65746547f

Datei anzeigen

@ -212,11 +212,11 @@ public class Schematic {
}
}
public void saveOldFormatFromPlayer(Player player) throws NoClipboardException {
public void saveOldFormatFromPlayer(Player player) throws IOException, NoClipboardException {
saveFromPlayer(player, false);
}
public void saveFromPlayer(Player player) throws NoClipboardException {
public void saveFromPlayer(Player player) throws IOException, NoClipboardException {
saveFromPlayer(player, true);
}
@ -225,12 +225,12 @@ public class Schematic {
try {
blob.setBytes(1, bytes);
updateDatabase(blob, newFormat);
} catch (SQLException throwables) {
throwables.printStackTrace();
} catch (SQLException e) {
throw new SecurityException(e);
}
}
private void saveFromPlayer(Player player, boolean newFormat) throws NoClipboardException {
private void saveFromPlayer(Player player, boolean newFormat) throws IOException, NoClipboardException {
Blob blob = SQL.blob();
VersionedRunnable.call(new VersionedRunnable(() -> {
try {