2018-07-20 08:04:37 +02:00
|
|
|
--- a/net/minecraft/server/CommandEffect.java
|
|
|
|
+++ b/net/minecraft/server/CommandEffect.java
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -62,7 +62,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
if (entity instanceof EntityLiving) {
|
|
|
|
MobEffect mobeffect = new MobEffect(mobeffectlist, k, i, false, flag);
|
|
|
|
|
|
|
|
- if (((EntityLiving) entity).addEffect(mobeffect)) {
|
|
|
|
+ if (((EntityLiving) entity).addEffect(mobeffect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.COMMAND)) { // CraftBukkit
|
|
|
|
++j;
|
|
|
|
}
|
|
|
|
}
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -88,7 +88,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
while (iterator.hasNext()) {
|
|
|
|
Entity entity = (Entity) iterator.next();
|
|
|
|
|
|
|
|
- if (entity instanceof EntityLiving && ((EntityLiving) entity).removeAllEffects()) {
|
|
|
|
+ if (entity instanceof EntityLiving && ((EntityLiving) entity).removeAllEffects(org.bukkit.event.entity.EntityPotionEffectEvent.Cause.COMMAND)) { // CraftBukkit
|
|
|
|
++i;
|
|
|
|
}
|
|
|
|
}
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -113,7 +113,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
while (iterator.hasNext()) {
|
|
|
|
Entity entity = (Entity) iterator.next();
|
|
|
|
|
|
|
|
- if (entity instanceof EntityLiving && ((EntityLiving) entity).removeEffect(mobeffectlist)) {
|
|
|
|
+ if (entity instanceof EntityLiving && ((EntityLiving) entity).removeEffect(mobeffectlist, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.COMMAND)) { // CraftBukkit
|
|
|
|
++i;
|
|
|
|
}
|
|
|
|
}
|