Clone locations because sometimes people are stupid
This commit is contained in:
parent
a57d14baa8
commit
680115f975
@ -23,7 +23,7 @@ public class PlayerChairSitEvent extends PlayerEvent implements Cancellable {
|
||||
}
|
||||
|
||||
public void setSitLocation(Location location) {
|
||||
sitLocation = location;
|
||||
sitLocation = location.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -29,7 +29,7 @@ public class PlayerChairUnsitEvent extends PlayerEvent implements Cancellable {
|
||||
}
|
||||
|
||||
public void setTeleportLocation(Location location) {
|
||||
unsitLocation = location;
|
||||
unsitLocation = location.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user