summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityGuardianElder.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityGuardianElder.patch')
-rw-r--r--nms-patches/EntityGuardianElder.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/nms-patches/EntityGuardianElder.patch b/nms-patches/EntityGuardianElder.patch
new file mode 100644
index 00000000..23fec4b9
--- /dev/null
+++ b/nms-patches/EntityGuardianElder.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/server/EntityGuardianElder.java
++++ b/net/minecraft/server/EntityGuardianElder.java
+@@ -17,7 +17,7 @@
+
+ }
+
+- protected void initAttributes() {
++ public void initAttributes() { // CraftBukkit - decompile error
+ super.initAttributes();
+ this.getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).setValue(0.30000001192092896D);
+ this.getAttributeInstance(GenericAttributes.ATTACK_DAMAGE).setValue(8.0D);
+@@ -68,7 +68,7 @@
+
+ if (!entityplayer.hasEffect(mobeffectlist) || entityplayer.getEffect(mobeffectlist).getAmplifier() < 2 || entityplayer.getEffect(mobeffectlist).getDuration() < 1200) {
+ entityplayer.playerConnection.sendPacket(new PacketPlayOutGameStateChange(10, 0.0F));
+- entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2));
++ entityplayer.addEffect(new MobEffect(mobeffectlist, 6000, 2), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
+ }
+ }
+ }