From 6ce65f026b19306c8e94a93b02a2f5b2ec1cd526 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 26 Nov 2022 08:53:56 +0100 Subject: [PATCH] Fix writing extended schematics --- SpigotCore_Main/src/de/steamwar/sql/SchematicData.java | 1 + 1 file changed, 1 insertion(+) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SchematicData.java b/SpigotCore_Main/src/de/steamwar/sql/SchematicData.java index 635aa6c..87b6708 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SchematicData.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SchematicData.java @@ -38,6 +38,7 @@ public class SchematicData { static { new SqlTypeMapper<>(PipedInputStream.class, "BLOB", (rs, identifier) -> { throw new SecurityException("PipedInputStream is write only datatype"); }, PreparedStatement::setBinaryStream); + new SqlTypeMapper<>(ByteArrayInputStream.class, "BLOB", (rs, identifier) -> { throw new SecurityException("ByteArrayInputStream is write only datatype"); }, PreparedStatement::setBinaryStream); } public static Clipboard clipboardFromStream(InputStream is, boolean schemFormat) {