From 680115f9751baebac4c753514d173cefa794c774 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Mon, 21 Jul 2014 02:54:14 +0400 Subject: [PATCH] Clone locations because sometimes people are stupid --- src/com/cnaude/chairs/api/PlayerChairSitEvent.java | 2 +- src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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