Clone location in PlayerFailMoveEvent getters
This commit is contained in:
@ -56,7 +56,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ */
|
+ */
|
||||||
+ @NotNull
|
+ @NotNull
|
||||||
+ public Location getFrom() {
|
+ public Location getFrom() {
|
||||||
+ return from;
|
+ return from.clone();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ /**
|
+ /**
|
||||||
@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ */
|
+ */
|
||||||
+ @NotNull
|
+ @NotNull
|
||||||
+ public Location getTo() {
|
+ public Location getTo() {
|
||||||
+ return to;
|
+ return to.clone();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ /**
|
+ /**
|
||||||
|
|||||||
Reference in New Issue
Block a user