mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
11 lines
693 B
Diff
11 lines
693 B
Diff
--- a/net/minecraft/world/entity/monster/EntityEvoker.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityEvoker.java
|
|
@@ -213,7 +213,7 @@
|
|
worldserver.getScoreboard().addPlayerToTeam(entityvex.getScoreboardName(), scoreboardteam);
|
|
}
|
|
|
|
- worldserver.addFreshEntityWithPassengers(entityvex);
|
|
+ worldserver.addFreshEntityWithPassengers(entityvex, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPELL); // CraftBukkit - Add SpawnReason
|
|
worldserver.gameEvent((Holder) GameEvent.ENTITY_PLACE, blockposition, GameEvent.a.of((Entity) EntityEvoker.this));
|
|
}
|
|
}
|