2020-05-11 06:44:27 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: kickash32 <kickash32@gmail.com>
|
|
|
|
Date: Fri, 8 May 2020 00:49:18 -0400
|
|
|
|
Subject: [PATCH] Fix PotionEffect ignores icon flag
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2020-09-02 11:12:25 +02:00
|
|
|
index 32819e4a8fcb1ac5d09ec0568fbb55da7b2d489d..9577af4ffbf15e970f342976838315e023b4d83b 100644
|
2020-05-11 06:44:27 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2020-09-02 11:12:25 +02:00
|
|
|
@@ -410,7 +410,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
2020-05-11 06:44:27 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean addPotionEffect(PotionEffect effect, boolean force) {
|
|
|
|
- getHandle().addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles()), EntityPotionEffectEvent.Cause.PLUGIN);
|
|
|
|
+ getHandle().addEffect(new MobEffect(MobEffectList.fromId(effect.getType().getId()), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles(), effect.hasIcon()), EntityPotionEffectEvent.Cause.PLUGIN); // Paper - Don't ignore icon
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|