mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
8b26bb8f3e
By: md_5 <git@md-5.net>
15 lines
708 B
Diff
15 lines
708 B
Diff
--- a/net/minecraft/world/entity/monster/EntityIllagerWizard.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityIllagerWizard.java
|
|
@@ -155,6 +155,11 @@
|
|
public void tick() {
|
|
--this.attackWarmupDelay;
|
|
if (this.attackWarmupDelay == 0) {
|
|
+ // CraftBukkit start
|
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.handleEntitySpellCastEvent(EntityIllagerWizard.this, this.getSpell())) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
this.performSpellCasting();
|
|
EntityIllagerWizard.this.playSound(EntityIllagerWizard.this.getCastingSoundEvent(), 1.0F, 1.0F);
|
|
}
|