From d8e8678d312397c7221b78683eed731275f23b66 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 28 Oct 2015 13:13:04 +0800 Subject: [PATCH] fix item check... Signed-off-by: 502647092 --- .../java/org/maxgamer/QuickShop/Shop/DisplayItem.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/maxgamer/QuickShop/Shop/DisplayItem.java b/src/main/java/org/maxgamer/QuickShop/Shop/DisplayItem.java index d36cecc..8bc0149 100644 --- a/src/main/java/org/maxgamer/QuickShop/Shop/DisplayItem.java +++ b/src/main/java/org/maxgamer/QuickShop/Shop/DisplayItem.java @@ -77,12 +77,8 @@ public class DisplayItem { } final Location eLoc = e.getLocation().getBlock().getLocation(); if (eLoc.equals(displayLoc) || eLoc.equals(shop.getLocation())) { - final ItemStack near = ((Item) e).getItemStack(); - // if its the same its a dupe - if (this.shop.matches(near)) { - e.remove(); - removed = true; - } + e.remove(); + removed = true; } } return removed;