Clone location in PlayerFailMoveEvent getters
This commit is contained in:
parent
5274ad672b
commit
ef2b574c6a
5 changed files with 10 additions and 10 deletions
|
@ -6,7 +6,7 @@ Subject: [PATCH] Add PlayerFailMoveEvent
|
|||
|
||||
diff --git a/src/main/java/io/papermc/paper/event/player/PlayerFailMoveEvent.java b/src/main/java/io/papermc/paper/event/player/PlayerFailMoveEvent.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..bb0be7376d068fa94f68d139c616bd99822e51bb
|
||||
index 0000000000000000000000000000000000000000..48610aa5eaacfe55e6931aac6f1a6644fb1718ef
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/event/player/PlayerFailMoveEvent.java
|
||||
@@ -0,0 +1,109 @@
|
||||
|
@ -56,7 +56,7 @@ index 0000000000000000000000000000000000000000..bb0be7376d068fa94f68d139c616bd99
|
|||
+ */
|
||||
+ @NotNull
|
||||
+ public Location getFrom() {
|
||||
+ return from;
|
||||
+ return from.clone();
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..bb0be7376d068fa94f68d139c616bd99
|
|||
+ */
|
||||
+ @NotNull
|
||||
+ public Location getTo() {
|
||||
+ return to;
|
||||
+ return to.clone();
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue