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); saveFromPlayer(player, false);
} }
public void saveFromPlayer(Player player) throws NoClipboardException { public void saveFromPlayer(Player player) throws IOException, NoClipboardException {
saveFromPlayer(player, true); saveFromPlayer(player, true);
} }
@ -225,12 +225,12 @@ public class Schematic {
try { try {
blob.setBytes(1, bytes); blob.setBytes(1, bytes);
updateDatabase(blob, newFormat); updateDatabase(blob, newFormat);
} catch (SQLException throwables) { } catch (SQLException e) {
throwables.printStackTrace(); 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(); Blob blob = SQL.blob();
VersionedRunnable.call(new VersionedRunnable(() -> { VersionedRunnable.call(new VersionedRunnable(() -> {
try { try {