mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
32 lines
1.6 KiB
Diff
32 lines
1.6 KiB
Diff
--- a/net/minecraft/server/EntityIllagerIllusioner.java
|
|
+++ b/net/minecraft/server/EntityIllagerIllusioner.java
|
|
@@ -24,8 +24,8 @@
|
|
super.n();
|
|
this.goalSelector.a(0, new PathfinderGoalFloat(this));
|
|
this.goalSelector.a(1, new EntityIllagerWizard.b());
|
|
- this.goalSelector.a(4, new EntityIllagerIllusioner.b(null));
|
|
- this.goalSelector.a(5, new EntityIllagerIllusioner.a(null));
|
|
+ this.goalSelector.a(4, new EntityIllagerIllusioner.b()); // CraftBukkit - decompile error
|
|
+ this.goalSelector.a(5, new EntityIllagerIllusioner.a()); // CraftBukkit - decompile error
|
|
this.goalSelector.a(6, new PathfinderGoalBowShoot(this, 0.5D, 20, 15.0F));
|
|
this.goalSelector.a(8, new PathfinderGoalRandomStroll(this, 0.6D));
|
|
this.goalSelector.a(9, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 3.0F, 1.0F));
|
|
@@ -164,7 +164,7 @@
|
|
}
|
|
|
|
protected void j() {
|
|
- EntityIllagerIllusioner.this.getGoalTarget().addEffect(new MobEffect(MobEffects.BLINDNESS, 400));
|
|
+ EntityIllagerIllusioner.this.getGoalTarget().addEffect(new MobEffect(MobEffects.BLINDNESS, 400), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
|
}
|
|
|
|
protected SoundEffect k() {
|
|
@@ -195,7 +195,7 @@
|
|
}
|
|
|
|
protected void j() {
|
|
- EntityIllagerIllusioner.this.addEffect(new MobEffect(MobEffects.INVISIBILITY, 1200));
|
|
+ EntityIllagerIllusioner.this.addEffect(new MobEffect(MobEffects.INVISIBILITY, 1200), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ILLUSION); // CraftBukkit
|
|
}
|
|
|
|
@Nullable
|