From 567ff90111a88c14bb721d5e88bb03539f9c37df Mon Sep 17 00:00:00 2001 From: alex6777 <111554242+alex6777@users.noreply.github.com> Date: Mon, 16 Jan 2023 10:03:58 -0500 Subject: [PATCH] Don't clone location in PreCreatureSpawnEvent (#8790) --- patches/api/0082-PreCreatureSpawnEvent.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/api/0082-PreCreatureSpawnEvent.patch b/patches/api/0082-PreCreatureSpawnEvent.patch index 0090330de9..abc126ec41 100644 --- a/patches/api/0082-PreCreatureSpawnEvent.patch +++ b/patches/api/0082-PreCreatureSpawnEvent.patch @@ -48,7 +48,7 @@ index 0000000000000000000000000000000000000000..3ad231aa3206c8cfd5ec995249584ceb + private boolean shouldAbortSpawn; + + public PreCreatureSpawnEvent(@NotNull Location location, @NotNull EntityType type, @NotNull CreatureSpawnEvent.SpawnReason reason) { -+ this.location = Preconditions.checkNotNull(location, "Location may not be null").clone(); ++ this.location = Preconditions.checkNotNull(location, "Location may not be null"); + this.type = Preconditions.checkNotNull(type, "Type may not be null"); + this.reason = Preconditions.checkNotNull(reason, "Reason may not be null"); + }