From d527aa0f5bff0a7ddd17bd6d2215992bb408524f Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:47:29 -0700 Subject: [PATCH] Fix api compile --- .../api/Expand-World.spawnParticle-API-and-add-Builder.patch | 2 +- patches/api/Fix-Spigot-annotation-mistakes.patch | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/patches/api/Expand-World.spawnParticle-API-and-add-Builder.patch b/patches/api/Expand-World.spawnParticle-API-and-add-Builder.patch index 3b13b4ba16..117495396f 100644 --- a/patches/api/Expand-World.spawnParticle-API-and-add-Builder.patch +++ b/patches/api/Expand-World.spawnParticle-API-and-add-Builder.patch @@ -473,7 +473,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + */ + @NotNull + public ParticleBuilder color(@Nullable Color color, float size) { -+ if (particle != Particle.REDSTONE && color != null) { ++ if (particle != Particle.DUST && color != null) { + throw new IllegalStateException("Color may only be set on REDSTONE"); + } + diff --git a/patches/api/Fix-Spigot-annotation-mistakes.patch b/patches/api/Fix-Spigot-annotation-mistakes.patch index c8eb708c6d..4e2a501200 100644 --- a/patches/api/Fix-Spigot-annotation-mistakes.patch +++ b/patches/api/Fix-Spigot-annotation-mistakes.patch @@ -1599,10 +1599,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 * @return the localized name that is set * @deprecated meta no longer exists */ -+ @Deprecated // Paper - Deprecate old localized API - @NotNull - @Deprecated(forRemoval = true) - String getLocalizedName(); @@ -0,0 +0,0 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste /** * Sets the localized name.