From ed772804f7752518d15e17844be6fcdd785ad64d Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sun, 23 Sep 2018 21:51:18 +0800 Subject: [PATCH] Fix item filter bug Former-commit-id: 348c24d52b6670efd455fd2faf9a8d40ac7582f8 --- pom.xml | 2 +- src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 3141b7ec30..4a18e84872 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.maxgamer QuickShop - Reremake 1.2.0-beta6 + Reremake 1.2.0-beta7 diff --git a/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java index b3582e68ac..f3dc50b64f 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java @@ -66,8 +66,8 @@ public void spawn() { itemlist = plugin.getConfig().getList("float.item.list"); for (Object material : itemlist) { String materialname = String.valueOf(material); - Material item = Material.matchMaterial(materialname); - if (item != null) { + String itemname = iStack.getType().name(); + if (materialname.equals(itemname)) { found_item = true; break; } else {