mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
43702a9e10
By: md_5 <git@md-5.net>
12 lines
807 B
Diff
12 lines
807 B
Diff
--- a/net/minecraft/world/entity/monster/EntityGuardianElder.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityGuardianElder.java
|
|
@@ -79,7 +79,7 @@
|
|
|
|
if (!entityplayer.hasEffect(mobeffectlist) || entityplayer.getEffect(mobeffectlist).getAmplifier() < 2 || entityplayer.getEffect(mobeffectlist).getDuration() < 1200) {
|
|
entityplayer.connection.send(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.GUARDIAN_ELDER_EFFECT, this.isSilent() ? 0.0F : 1.0F));
|
|
- entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2), this);
|
|
+ entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2), this, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
|
}
|
|
}
|
|
}
|