diff --git a/src/com/cnaude/chairs/api/PlayerChairSitEvent.java b/src/com/cnaude/chairs/api/PlayerChairSitEvent.java index 9843060..5783934 100644 --- a/src/com/cnaude/chairs/api/PlayerChairSitEvent.java +++ b/src/com/cnaude/chairs/api/PlayerChairSitEvent.java @@ -23,7 +23,7 @@ public class PlayerChairSitEvent extends PlayerEvent implements Cancellable { } public void setSitLocation(Location location) { - sitLocation = location; + sitLocation = location.clone(); } @Override diff --git a/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java b/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java index c0aed05..62cb25b 100644 --- a/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java +++ b/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java @@ -29,7 +29,7 @@ public class PlayerChairUnsitEvent extends PlayerEvent implements Cancellable { } public void setTeleportLocation(Location location) { - unsitLocation = location; + unsitLocation = location.clone(); } @Override