From d45961a9b7791cad4e44eaff640b28fd6f9fdee7 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Fri, 22 Nov 2019 21:11:27 +0800 Subject: [PATCH] Fix ender-chest feature Former-commit-id: a1ffe5a7cbc040d75c04c9ebe20e78e527ece593 [formerly c37357d8bc414fcfc1756553c7bf63f796506cca] Former-commit-id: 7d88eefd4cedd59773f76b6e87a7dfe85a8a70b0 --- src/main/java/org/maxgamer/quickshop/Util/Util.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Util/Util.java b/src/main/java/org/maxgamer/quickshop/Util/Util.java index f05046f28..7f9e4a4b8 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/Util.java +++ b/src/main/java/org/maxgamer/quickshop/Util/Util.java @@ -106,10 +106,12 @@ public class Util { if (plugin.getOpenInvPlugin() == null) { return false; } + }else{ + if (!(bs instanceof InventoryHolder)) { + return false; + } } - if (!(bs instanceof InventoryHolder)) { - return false; - } + if (!isShoppables(b.getType())) { return false; }