From 75ff29c6786f5fda5766241a391f87827255a15e Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 23 Feb 2020 10:33:05 +1100 Subject: [PATCH] SPIGOT-5591: Allow concurrent potion effects By: md_5 --- paper-api/src/main/java/org/bukkit/entity/LivingEntity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index 88a9362761..69482398ed 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java @@ -252,9 +252,6 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource /** * Adds the given {@link PotionEffect} to the living entity. - *

- * Only one potion effect can be present for a given {@link - * PotionEffectType}. * * @param effect PotionEffect to be added * @return whether the effect could be added @@ -270,7 +267,10 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource * @param effect PotionEffect to be added * @param force whether conflicting effects should be removed * @return whether the effect could be added + * @deprecated no need to force since multiple effects of the same type are + * now supported. */ + @Deprecated public boolean addPotionEffect(@NotNull PotionEffect effect, boolean force); /**