From a3876496906dc7b097013df19e05e4ab5bca04d4 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Fri, 9 Nov 2018 23:19:26 +0800 Subject: [PATCH] a little fix Former-commit-id: 7df4bd39c63aa76aa8139d31e348ed1adeaf6229 [formerly 565509cc0d397a2e06a5f1c348ecaf324c68e02e] Former-commit-id: 05bb686a6f81f2c7b17ea17e140b7a790b994154 --- .../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 f332fb655..9cc68bc10 100644 --- a/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java +++ b/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java @@ -142,7 +142,7 @@ public class PlayerListener implements Listener { p.sendMessage( MsgUtil.getMessage("how-much-to-trade-for", MsgUtil.getItemi18n(Util.getName(info.getItem())))); } - } else if (e.getAction().equals(Action.RIGHT_CLICK_BLOCK)) { + } else if (e.getAction().equals(Action.RIGHT_CLICK_BLOCK)&&e.getClickedBlock().getType()==Material.WALL_SIGN) { /** @TODO: ControlPanel **/ Block block; if(e.getClickedBlock().getType()==Material.WALL_SIGN) {