aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/entity/monster/EntityGuardianElder.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/entity/monster/EntityGuardianElder.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/entity/monster/EntityGuardianElder.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/entity/monster/EntityGuardianElder.patch b/patch-remap/og/net/minecraft/world/entity/monster/EntityGuardianElder.patch
new file mode 100644
index 0000000000..d1e4065c39
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/entity/monster/EntityGuardianElder.patch
@@ -0,0 +1,11 @@
+--- a/net/minecraft/world/entity/monster/EntityGuardianElder.java
++++ b/net/minecraft/world/entity/monster/EntityGuardianElder.java
+@@ -70,7 +70,7 @@
+ super.customServerAiStep();
+ if ((this.tickCount + this.getId()) % 1200 == 0) {
+ MobEffect mobeffect = new MobEffect(MobEffects.DIG_SLOWDOWN, 6000, 2);
+- 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
+
+ list.forEach((entityplayer) -> {
+ entityplayer.connection.send(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.GUARDIAN_ELDER_EFFECT, this.isSilent() ? 0.0F : 1.0F));