From 441097926b07ab328b12465dcc35548589dbdef6 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 9 Dec 2019 11:16:11 +0100 Subject: [PATCH] Fix CuboidClipboard-Chaos --- SpigotCore_12/src/de/steamwar/sql/Schematic_12.java | 4 ++-- SpigotCore_8/src/de/steamwar/sql/Schematic_8.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SpigotCore_12/src/de/steamwar/sql/Schematic_12.java b/SpigotCore_12/src/de/steamwar/sql/Schematic_12.java index 5a4989e..ef79b28 100644 --- a/SpigotCore_12/src/de/steamwar/sql/Schematic_12.java +++ b/SpigotCore_12/src/de/steamwar/sql/Schematic_12.java @@ -32,11 +32,11 @@ class Schematic_12 { return outputStream.toByteArray(); } - static void setPlayerClipboard(Player player, InputStream is) throws IOException, NoClipboardException { + static void setPlayerClipboard(Player player, InputStream is) throws IOException { Schematic_8.setPlayerClipboard(player, is); } - static Clipboard getClipboard(InputStream is) throws IOException, NoClipboardException { + static Clipboard getClipboard(InputStream is) throws IOException { return Schematic_8.getClipboard(is); } } diff --git a/SpigotCore_8/src/de/steamwar/sql/Schematic_8.java b/SpigotCore_8/src/de/steamwar/sql/Schematic_8.java index edc28c2..baf66ae 100644 --- a/SpigotCore_8/src/de/steamwar/sql/Schematic_8.java +++ b/SpigotCore_8/src/de/steamwar/sql/Schematic_8.java @@ -36,7 +36,7 @@ class Schematic_8 { return outputStream.toByteArray(); } - static void setPlayerClipboard(Player player, InputStream is) throws IOException, NoClipboardException { + static void setPlayerClipboard(Player player, InputStream is) throws IOException { WorldData world = new BukkitWorld(player.getWorld()).getWorldData(); Clipboard clipboard = getClipboard(is);