diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/entity/monster/EntityIllagerWizard.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/entity/monster/EntityIllagerWizard.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/entity/monster/EntityIllagerWizard.patch b/patch-remap/og/net/minecraft/world/entity/monster/EntityIllagerWizard.patch new file mode 100644 index 0000000000..a25bbe31a5 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/entity/monster/EntityIllagerWizard.patch @@ -0,0 +1,25 @@ +--- a/net/minecraft/world/entity/monster/EntityIllagerWizard.java ++++ b/net/minecraft/world/entity/monster/EntityIllagerWizard.java +@@ -16,6 +16,10 @@ + import net.minecraft.world.entity.ai.goal.PathfinderGoal; + import net.minecraft.world.level.World; + ++// CraftBukkit start ++import org.bukkit.craftbukkit.event.CraftEventFactory; ++// CraftBukkit end ++ + public abstract class EntityIllagerWizard extends EntityIllagerAbstract { + + private static final DataWatcherObject<Byte> DATA_SPELL_CASTING_ID = DataWatcher.defineId(EntityIllagerWizard.class, DataWatcherRegistry.BYTE); +@@ -155,6 +159,11 @@ + public void tick() { + --this.attackWarmupDelay; + if (this.attackWarmupDelay == 0) { ++ // CraftBukkit start ++ if (!CraftEventFactory.handleEntitySpellCastEvent(EntityIllagerWizard.this, this.getSpell())) { ++ return; ++ } ++ // CraftBukkit end + this.performSpellCasting(); + EntityIllagerWizard.this.playSound(EntityIllagerWizard.this.getCastingSoundEvent(), 1.0F, 1.0F); + } |