Clone mutable types in events when changes are discarded (#10333)

This commit is contained in:
Jake Potrebic
2024-03-20 13:42:29 -07:00
parent 71a2187c20
commit 3e27ced8ce
10 changed files with 163 additions and 13 deletions

View File

@@ -42,6 +42,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ @NotNull
+ public Location getSpawnerLocation() {
+ return this.spawnerLocation;
+ return this.spawnerLocation.clone();
+ }
+}