diff options
Diffstat (limited to 'patches/api/0154-PreSpawnerSpawnEvent.patch')
-rw-r--r-- | patches/api/0154-PreSpawnerSpawnEvent.patch | 4 |
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"); + } |