Fix a bunch more issues arising from mutable types (#11769)
This commit is contained in:
@@ -37,7 +37,7 @@ public class PlayerSpawnLocationEvent extends PlayerEvent {
|
||||
* @param location the spawn location
|
||||
*/
|
||||
public void setSpawnLocation(@NotNull Location location) {
|
||||
this.spawnLocation = location;
|
||||
this.spawnLocation = location.clone();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user