mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
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:
parent
07854f79fa
commit
e168f03ab7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user