Clone locations because sometimes people are stupid

This commit is contained in:
Shevchik 2014-07-21 02:54:14 +04:00
parent a57d14baa8
commit 680115f975
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ public class PlayerChairSitEvent extends PlayerEvent implements Cancellable {
}
public void setSitLocation(Location location) {
sitLocation = location;
sitLocation = location.clone();
}
@Override

View File

@ -29,7 +29,7 @@ public class PlayerChairUnsitEvent extends PlayerEvent implements Cancellable {
}
public void setTeleportLocation(Location location) {
unsitLocation = location;
unsitLocation = location.clone();
}
@Override