mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 22:22:18 -07:00
Clone mutable types in events when changes are discarded (#10333)
This commit is contained in:
@@ -241,7 +241,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return {@link Location} where search begins
|
||||
+ */
|
||||
+ public @NotNull Location getOrigin() {
|
||||
+ return this.origin;
|
||||
+ return this.origin.clone();
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
Reference in New Issue
Block a user