ignore the cancelled click event

Former-commit-id: c2745e61c8c6e69e0518359d6ac301909ae288b4 [formerly 2aa21d7e2b0f8e1360a827ddd3395999417c594b]
Former-commit-id: be9505ad0ae8cf5bc2c324a875625bea233ba00b
This commit is contained in:
Ghost_chu committed 2019-07-04 08:46:45 +08:00
1 parent 5642004eeb
commit 78fc0eb284
1 file changed
+1 -1
@@ -47,7 +47,7 @@ public class PlayerListener implements Listener {
* Handles players left clicking a chest. Left click a NORMAL chest with item :
* Send creation menu Left click a SHOP chest : Send purchase menu
*/
@EventHandler(priority = EventPriority.MONITOR)
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public void onClick(PlayerInteractEvent e) {
if (e.getAction().equals(Action.LEFT_CLICK_BLOCK)) {
Block b = e.getClickedBlock();