aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0082-PreCreatureSpawnEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0082-PreCreatureSpawnEvent.patch')
-rw-r--r--patches/api/0082-PreCreatureSpawnEvent.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0082-PreCreatureSpawnEvent.patch b/patches/api/0082-PreCreatureSpawnEvent.patch
index 156b50a9c1..60f65dc98d 100644
--- a/patches/api/0082-PreCreatureSpawnEvent.patch
+++ b/patches/api/0082-PreCreatureSpawnEvent.patch
@@ -16,7 +16,7 @@ See: https://github.com/PaperMC/Paper/issues/917
diff --git a/src/main/java/com/destroystokyo/paper/event/entity/PreCreatureSpawnEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/PreCreatureSpawnEvent.java
new file mode 100644
-index 0000000000000000000000000000000000000000..1d582118f19a41b499ee73b5e27ddb66ed34f06b
+index 0000000000000000000000000000000000000000..633ef4dcc701916f2dbfefbbebd5994f93ffc2a4
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/entity/PreCreatureSpawnEvent.java
@@ -0,0 +1,109 @@
@@ -64,7 +64,7 @@ index 0000000000000000000000000000000000000000..1d582118f19a41b499ee73b5e27ddb66
+ */
+ @NotNull
+ public Location getSpawnLocation() {
-+ return this.location;
++ return this.location.clone();
+ }
+
+ /**