From ce2ac2868b8bd269f451e6321ead925ed435dbc6 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 14 Jan 2022 10:55:59 +1100 Subject: [PATCH] SPIGOT-6888: Add SpawnReason for Vex spawned by Evokers By: Doc --- .../minecraft/world/entity/monster/EntityEvoker.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 paper-server/nms-patches/net/minecraft/world/entity/monster/EntityEvoker.patch diff --git a/paper-server/nms-patches/net/minecraft/world/entity/monster/EntityEvoker.patch b/paper-server/nms-patches/net/minecraft/world/entity/monster/EntityEvoker.patch new file mode 100644 index 0000000000..128cf3daee --- /dev/null +++ b/paper-server/nms-patches/net/minecraft/world/entity/monster/EntityEvoker.patch @@ -0,0 +1,11 @@ +--- 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 + } + + }