aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0154-PreSpawnerSpawnEvent.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2023-08-13 17:41:18 -0700
committerJake Potrebic <[email protected]>2023-08-15 10:04:27 -0700
commit496156e2eff4ec5a47aaf174cb1a04fd90612fde (patch)
tree87ddd26d4ed12c8bd8ad3723a70062b69c47110c /patches/api/0154-PreSpawnerSpawnEvent.patch
parent6dc8e30c9275f7a172025b053d4970d1795c6104 (diff)
downloadPaper-experimental.tar.gz
Paper-experimental.zip
Update with latest upstream changesexperimental
Diffstat (limited to 'patches/api/0154-PreSpawnerSpawnEvent.patch')
-rw-r--r--patches/api/0154-PreSpawnerSpawnEvent.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0154-PreSpawnerSpawnEvent.patch b/patches/api/0154-PreSpawnerSpawnEvent.patch
index dcb362d8bc..8c49383326 100644
--- a/patches/api/0154-PreSpawnerSpawnEvent.patch
+++ b/patches/api/0154-PreSpawnerSpawnEvent.patch
@@ -12,7 +12,7 @@ Dropped as it does not apply due to the earlier PreCreatureSpawnEvent patch not
diff --git a/src/main/java/com/destroystokyo/paper/event/entity/PreSpawnerSpawnEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/PreSpawnerSpawnEvent.java
new file mode 100644
-index 0000000000000000000000000000000000000000..48cff063594840a07aeaf35513780e28ea019a76
+index 0000000000000000000000000000000000000000..765440cedcddc4a7b7312a930fef857efd7ad661
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/entity/PreSpawnerSpawnEvent.java
@@ -0,0 +1,29 @@
@@ -35,7 +35,7 @@ index 0000000000000000000000000000000000000000..48cff063594840a07aeaf35513780e28
+public class PreSpawnerSpawnEvent extends PreCreatureSpawnEvent {
+ @NotNull private final Location spawnerLocation;
+
-+ public PreSpawnerSpawnEvent(@NotNull Location location, @NotNull EntityType type, @NotNull Location spawnerLocation) {
++ public PreSpawnerSpawnEvent(@NotNull Location location, @NotNull EntityType<?> type, @NotNull Location spawnerLocation) {
+ super(location, type, CreatureSpawnEvent.SpawnReason.SPAWNER);
+ this.spawnerLocation = Preconditions.checkNotNull(spawnerLocation, "Spawner location may not be null");
+ }