diff --git a/patches/api/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch b/patches/api/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch index ae16830f5b..4dcfafb1ed 100644 --- a/patches/api/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch +++ b/patches/api/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch @@ -30,6 +30,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * @return the launched projectile + */ + @NotNull -+ public T launchProjectile(@NotNull Class projectile, @Nullable Vector velocity, @Nullable org.bukkit.util.Consumer function); ++ public T launchProjectile(@NotNull Class projectile, @Nullable Vector velocity, @Nullable java.util.function.Consumer function); + // Paper end } diff --git a/patches/server/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch b/patches/server/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch index 617082a2d0..97b8bc5f9d 100644 --- a/patches/server/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch +++ b/patches/server/Add-a-consumer-parameter-to-ProjectileSource-launchP.patch @@ -20,7 +20,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + @Override + @SuppressWarnings("unchecked") -+ public T launchProjectile(Class projectile, Vector velocity, org.bukkit.util.Consumer function) { ++ public T launchProjectile(Class projectile, Vector velocity, java.util.function.Consumer function) { + // Paper end - launchProjectile consumer Preconditions.checkState(!this.getHandle().generation, "Cannot launch projectile during world generation"); @@ -50,7 +50,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + + @Override -+ public T launchProjectile(Class projectile, Vector velocity, org.bukkit.util.Consumer function) { ++ public T launchProjectile(Class projectile, Vector velocity, java.util.function.Consumer function) { + // Paper end - launchProjectile consumer Preconditions.checkArgument(this.getBlock().getType() == Material.DISPENSER, "Block is no longer dispenser"); // Copied from BlockDispenser.dispense()