2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityGuardianElder.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityGuardianElder.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -67,7 +67,7 @@
|
2022-06-07 18:00:00 +02:00
|
|
|
super.customServerAiStep();
|
|
|
|
if ((this.tickCount + this.getId()) % 1200 == 0) {
|
|
|
|
MobEffect mobeffect = new MobEffect(MobEffects.DIG_SLOWDOWN, 6000, 2);
|
2023-06-07 17:30:00 +02:00
|
|
|
- List<EntityPlayer> list = MobEffectUtil.addEffectToPlayersAround((WorldServer) this.level(), this, this.position(), 50.0D, mobeffect, 1200);
|
|
|
|
+ List<EntityPlayer> list = MobEffectUtil.addEffectToPlayersAround((WorldServer) this.level(), this, this.position(), 50.0D, mobeffect, 1200, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
2018-07-20 08:04:37 +02:00
|
|
|
|
2022-06-07 18:00:00 +02:00
|
|
|
list.forEach((entityplayer) -> {
|
|
|
|
entityplayer.connection.send(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.GUARDIAN_ELDER_EFFECT, this.isSilent() ? 0.0F : 1.0F));
|