mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Clone mutable types in events when changes are discarded (#10333)
This commit is contained in:
@@ -42,6 +42,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ @NotNull
|
||||
+ public Location getSpawnerLocation() {
|
||||
+ return this.spawnerLocation;
|
||||
+ return this.spawnerLocation.clone();
|
||||
+ }
|
||||
+}
|
||||
|
Reference in New Issue
Block a user