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