2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityIllagerWizard.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityIllagerWizard.java
|
2021-06-11 15:00:00 +10:00
|
|
|
@@ -161,6 +161,11 @@
|
2020-08-15 09:12:20 +10:00
|
|
|
public void e() {
|
2021-06-11 15:00:00 +10:00
|
|
|
--this.attackWarmupDelay;
|
|
|
|
if (this.attackWarmupDelay == 0) {
|
2020-08-15 09:12:20 +10:00
|
|
|
+ // CraftBukkit start
|
2020-09-11 07:00:00 +10:00
|
|
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.handleEntitySpellCastEvent(EntityIllagerWizard.this, this.getCastSpell())) {
|
2020-08-15 09:12:20 +10:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
this.j();
|
|
|
|
EntityIllagerWizard.this.playSound(EntityIllagerWizard.this.getSoundCastSpell(), 1.0F, 1.0F);
|
|
|
|
}
|