3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 02:50:05 +01: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.
Dieser Commit ist enthalten in:
Kenzie Togami 2016-05-20 08:54:22 -07:00
Ursprung 07854f79fa
Commit e168f03ab7

Datei anzeigen

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