mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 22:13:42 +01:00
15 lines
636 B
Diff
15 lines
636 B
Diff
--- a/net/minecraft/server/EntityIllagerWizard.java
|
|
+++ b/net/minecraft/server/EntityIllagerWizard.java
|
|
@@ -145,6 +145,11 @@
|
|
public void e() {
|
|
--this.b;
|
|
if (this.b == 0) {
|
|
+ // CraftBukkit start
|
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.handleEntitySpellCastEvent(EntityIllagerWizard.this, l())) { // PAIL rename getSpell
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
this.j();
|
|
EntityIllagerWizard.this.playSound(EntityIllagerWizard.this.getSoundCastSpell(), 1.0F, 1.0F);
|
|
}
|