mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
fix item check...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
b4623befa9
commit
d8e8678d31
@ -77,14 +77,10 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
return removed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user