diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/EffectCommands.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/EffectCommands.java.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/EffectCommands.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/EffectCommands.java.patch new file mode 100644 index 0000000000..98d850e86a --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/EffectCommands.java.patch @@ -0,0 +1,29 @@ +--- a/net/minecraft/server/commands/EffectCommands.java ++++ b/net/minecraft/server/commands/EffectCommands.java +@@ -85,7 +84,7 @@ + if (entity instanceof LivingEntity) { + MobEffectInstance mobeffectinstance = new MobEffectInstance(mobeffect, k, i, false, flag); + +- if (((LivingEntity) entity).addEffect(mobeffectinstance, commandsourcestack.getEntity())) { ++ if (((LivingEntity) entity).addEffect(mobeffect, source.getEntity(), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.COMMAND)) { // CraftBukkit + ++j; + } + } +@@ -115,7 +114,7 @@ + while (iterator.hasNext()) { + Entity entity = (Entity) iterator.next(); + +- if (entity instanceof LivingEntity && ((LivingEntity) entity).removeAllEffects()) { ++ if (entity instanceof LivingEntity && ((LivingEntity) entity).removeAllEffects(org.bukkit.event.entity.EntityPotionEffectEvent.Cause.COMMAND)) { // CraftBukkit + ++i; + } + } +@@ -145,7 +144,7 @@ + while (iterator.hasNext()) { + Entity entity = (Entity) iterator.next(); + +- if (entity instanceof LivingEntity && ((LivingEntity) entity).removeEffect(mobeffect)) { ++ if (entity instanceof LivingEntity && ((LivingEntity) entity).removeEffect(mobeffectlist, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.COMMAND)) { // CraftBukkit + ++i; + } + } |