mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
8a3c8cfcd4
By: md_5 <git@md-5.net>
12 lines
761 B
Diff
12 lines
761 B
Diff
--- a/net/minecraft/world/entity/monster/EntityEvoker.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityEvoker.java
|
|
@@ -194,7 +194,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
|
|
worldserver.gameEvent(GameEvent.ENTITY_PLACE, blockposition, GameEvent.a.of((Entity) EntityEvoker.this));
|
|
}
|
|
}
|