Update for new Bukkit version; fix for movement between different territory claims not always reporting the correct territory owner, which appears to be caused by event.getTo() for PlayerMoveEvent currently (as of RB 953) not always giving the correct location

This commit is contained in:
Brettflan 2011-07-03 15:25:50 -05:00
parent 7f67ca0cd6
commit bfcfbe4cc8
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -150,7 +150,7 @@ public class FactionsPlayerListener extends PlayerListener{
// Did we change coord?
FLocation from = me.getLastStoodAt();
FLocation to = new FLocation(event.getTo());
FLocation to = new FLocation(event.getPlayer().getLocation());
if (from.equals(to)) {
return;