PaperMC/paper-server/nms-patches/net/minecraft/world/entity/monster/EntityEvoker.patch
CraftBukkit/Spigot ce2ac2868b SPIGOT-6888: Add SpawnReason for Vex spawned by Evokers
By: Doc <nachito94@msn.com>
2022-01-14 10:55:59 +11:00

11 lines
608 B
Diff

--- a/net/minecraft/world/entity/monster/EntityEvoker.java
+++ b/net/minecraft/world/entity/monster/EntityEvoker.java
@@ -191,7 +191,7 @@
entityvex.setOwner(EntityEvoker.this);
entityvex.setBoundOrigin(blockposition);
entityvex.setLimitedLife(20 * (30 + EntityEvoker.this.random.nextInt(90)));
- worldserver.addFreshEntityWithPassengers(entityvex);
+ worldserver.addFreshEntityWithPassengers(entityvex, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPELL); // CraftBukkit - Add SpawnReason
}
}