2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityGuardianElder.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityGuardianElder.java
|
|
|
|
@@ -79,7 +79,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
|
|
|
|
if (!entityplayer.hasEffect(mobeffectlist) || entityplayer.getEffect(mobeffectlist).getAmplifier() < 2 || entityplayer.getEffect(mobeffectlist).getDuration() < 1200) {
|
2021-11-21 23:00:00 +01:00
|
|
|
entityplayer.connection.send(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.GUARDIAN_ELDER_EFFECT, this.isSilent() ? 0.0F : 1.0F));
|
2021-06-11 07:00:00 +02:00
|
|
|
- entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2), this);
|
|
|
|
+ entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2), this, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
2018-07-20 08:04:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|