Clone locations because sometimes people are stupid
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user