From e168f03ab71cafb3a7d864a642960d831f5ee513 Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Fri, 20 May 2016 08:54:22 -0700 Subject: [PATCH] Replace RightClickEmpty with RightClickItem. RightClickEmpty is not fired on the server. RightClickItem fires once for the same event (a right click in air). This fixes brush and other tools that rely on air clicks. --- .../src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java index 46300364f..056a6882d 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java @@ -196,7 +196,7 @@ public class ForgeWorldEdit { if (we.handleRightClick(player)) { event.setCanceled(true); } - } else if (event instanceof PlayerInteractEvent.RightClickEmpty) { + } else if (event instanceof PlayerInteractEvent.RightClickItem) { if (we.handleRightClick(player)) { event.setCanceled(true); }