mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-19 15:48:10 +01:00
Don't ignore canceled air right click events.
Apparently Bukkit pre-cancels them even if they would do something.
This commit is contained in:
parent
7094f70f4a
commit
2a8131780f
@ -601,10 +601,6 @@ private void handleBlockLeftClick(PlayerInteractEvent event) {
|
|||||||
* @param event Thrown event
|
* @param event Thrown event
|
||||||
*/
|
*/
|
||||||
private void handleAirRightClick(PlayerInteractEvent event) {
|
private void handleAirRightClick(PlayerInteractEvent event) {
|
||||||
if (event.isCancelled()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
ItemStack item = player.getItemInHand();
|
ItemStack item = player.getItemInHand();
|
||||||
|
Loading…
Reference in New Issue
Block a user