Update GuidedWaypointProvider.java

This commit is contained in:
fullwall 2014-09-03 17:37:18 +08:00
parent 4b1737e128
commit 2addf9678c

View File

@ -101,7 +101,9 @@ public class GuidedWaypointProvider implements WaypointProvider {
@EventHandler(ignoreCancelled = true)
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_BLOCK
|| event.getClickedBlock() == null)
return;
if (event.getPlayer().getWorld() != npc.getEntity().getWorld())