Skip to content

Commit

Permalink
Fix issue #48
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku committed Apr 18, 2016
1 parent 5d890f6 commit 2116d9c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -154,7 +154,7 @@ public void execute(final @Nullable Listener listener, final Event event) throws
last = event;
final PlayerMoveEvent e = (PlayerMoveEvent) event;
final Location to = e.getTo(), from = e.getFrom();
if (to.equals(from))
if (to != null && to.equals(from))
return;
//if (to.getWorld().equals(from.getWorld()) && to.distanceSquared(from) < 2)
// return;
Expand Down

0 comments on commit 2116d9c

Please sign in to comment.