mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-28 15:17:43 +02:00
Update GuidedWaypointProvider.java
This commit is contained in:
parent
5e16260876
commit
f021d5b855
@ -112,7 +112,7 @@ public class GuidedWaypointProvider implements WaypointProvider {
|
|||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler(ignoreCancelled = true)
|
||||||
public void onPlayerInteract(PlayerInteractEvent event) {
|
public void onPlayerInteract(PlayerInteractEvent event) {
|
||||||
if (!event.getPlayer().equals(player) || event.getAction() == Action.PHYSICAL
|
if (!event.getPlayer().equals(player) || event.getAction() == Action.PHYSICAL
|
||||||
|| event.getAction() == Action.RIGHT_CLICK_ENTITY
|
|| event.getAction() == Action.RIGHT_CLICK_AIR
|
||||||
|| event.getAction() == Action.RIGHT_CLICK_BLOCK
|
|| event.getAction() == Action.RIGHT_CLICK_BLOCK
|
||||||
|| event.getClickedBlock() == null)
|
|| event.getClickedBlock() == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user