From 1bf689c39da471e5abdf88f3e1977267c68ff82f Mon Sep 17 00:00:00 2001 From: j502647092 Date: Thu, 8 Oct 2015 23:18:04 +0800 Subject: [PATCH] fix Aciton... --- .../java/org/maxgamer/QuickShop/Listeners/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java b/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java index 9195853..1753931 100644 --- a/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java +++ b/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java @@ -41,7 +41,7 @@ public class PlayerListener implements Listener { */ @EventHandler(priority = EventPriority.MONITOR) public void onClick(final PlayerInteractEvent e) { - if (e.getAction() != Action.LEFT_CLICK_BLOCK) { + if (e.getAction() != Action.LEFT_CLICK_BLOCK || e.getMaterial() == plugin.getConfigManager().getSuperItem()) { return; } final Block b = e.getClickedBlock();