From 379f6593c9e48a24f9f9b38dcbe4fd525e8a7252 Mon Sep 17 00:00:00 2001 From: j502647092 Date: Thu, 8 Oct 2015 23:35:38 +0800 Subject: [PATCH] fix SuperItem Left Click... Signed-off-by: j502647092 --- .../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 1753931..65c4330 100644 --- a/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java +++ b/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java @@ -163,7 +163,7 @@ public class PlayerListener implements Listener { @EventHandler(priority = EventPriority.MONITOR) public void onSuperItemClick(final PlayerInteractEvent e) { final Player p = e.getPlayer(); - if (e.getAction() == Action.LEFT_CLICK_BLOCK || p.getGameMode() != GameMode.SURVIVAL || e.getMaterial() != plugin.getConfigManager().getSuperItem()) { + if (p.getGameMode() != GameMode.SURVIVAL || e.getMaterial() != plugin.getConfigManager().getSuperItem()) { return; } final Block b = e.getClickedBlock();