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