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.
This commit is contained in:
Kenzie Togami 2016-05-20 08:54:22 -07:00
parent 07854f79fa
commit e168f03ab7

View File

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