2018-07-20 08:04:37 +02:00
|
|
|
--- a/net/minecraft/server/EntityGuardianElder.java
|
|
|
|
+++ b/net/minecraft/server/EntityGuardianElder.java
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -65,7 +65,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
|
|
|
|
if (!entityplayer.hasEffect(mobeffectlist) || entityplayer.getEffect(mobeffectlist).getAmplifier() < 2 || entityplayer.getEffect(mobeffectlist).getDuration() < 1200) {
|
2020-06-25 02:00:00 +02:00
|
|
|
entityplayer.playerConnection.sendPacket(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.k, this.isSilent() ? 0.0F : 1.0F));
|
2018-07-20 08:04:37 +02:00
|
|
|
- entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2));
|
|
|
|
+ entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|