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:
parent
7f67ca0cd6
commit
bfcfbe4cc8
Binary file not shown.
@ -150,7 +150,7 @@ public class FactionsPlayerListener extends PlayerListener{
|
|||||||
|
|
||||||
// Did we change coord?
|
// Did we change coord?
|
||||||
FLocation from = me.getLastStoodAt();
|
FLocation from = me.getLastStoodAt();
|
||||||
FLocation to = new FLocation(event.getTo());
|
FLocation to = new FLocation(event.getPlayer().getLocation());
|
||||||
|
|
||||||
if (from.equals(to)) {
|
if (from.equals(to)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user