diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java index e58dc9ec9..badf02289 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java @@ -132,7 +132,7 @@ public class ContainerShop implements Shop { case VIRTUALITEM: try { this.displayItem = new VirtualDisplayItem(this); - } catch (Exception e) { + } catch (Throwable e) { Util.debugLog(e.getMessage()); Arrays.stream(e.getStackTrace()).forEach(ex -> Util.debugLog(ex.getClassName() + "#" + ex.getMethodName() + "#" + ex.getLineNumber())); plugin.getConfig().set("shop.display-type", 0); diff --git a/src/main/java/org/maxgamer/quickshop/Shop/VirtualDisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/VirtualDisplayItem.java index 3ea10892a..a3a3dc5da 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/VirtualDisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/VirtualDisplayItem.java @@ -88,7 +88,7 @@ public class VirtualDisplayItem extends DisplayItem { initFakeDropItemPacket(); } - private void initFakeDropItemPacket() throws RuntimeException { + private void initFakeDropItemPacket() { //First, create a new packet to spawn item fakeItemPacket = protocolManager.createPacket(PacketType.Play.Server.SPAWN_ENTITY); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 4b78147e9..54473d2a1 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,7 +1,7 @@ #This is example config, don't direct modify this file, all changes will revert when you reload the plugin. #Do not touch if you not clear know about this -config-version: 90 +config-version: 91 #Select the language you want to use, (e.g de), use only supported language codes from the list below. #If you use a not exist/not support language, plugin will move to use en_US to keep everything working.