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.
This commit is contained in:
Andreas Troelsen 2018-07-19 00:59:34 +02:00
parent 359a04c548
commit e484583b7e

View File

@ -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;