From e484583b7e0456da3c0287a1db26f473fde3d0f5 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Thu, 19 Jul 2018 00:59:34 +0200 Subject: [PATCH] Allow right click actions in the lobby. Originally, the right click ban was introduced to prevent issues with people blowing themselves and each other up in the lobby. The right click ban only solves this issue sometimes, so it isn't really very effective. By removing the right click ban, it becomes possible to activate redstone stuff like buttons and levers in the lobby. Fixes #431. --- src/main/java/com/garbagemule/MobArena/ArenaListener.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/garbagemule/MobArena/ArenaListener.java b/src/main/java/com/garbagemule/MobArena/ArenaListener.java index 834d15d..c12b916 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaListener.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaListener.java @@ -1065,13 +1065,6 @@ public class ArenaListener Player p = event.getPlayer(); if (!arena.inLobby(p)) return; - // Player is in the lobby, so disallow using items. - Action a = event.getAction(); - if (a == Action.RIGHT_CLICK_AIR || a == Action.RIGHT_CLICK_BLOCK) { - event.setUseItemInHand(Result.DENY); - event.setCancelled(true); - } - // Bail if off-hand or if there's no block involved. if (event.getHand() == EquipmentSlot.OFF_HAND || !event.hasBlock()) return;