SPIGOT-6623: Missing API reasons for entity freezing

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2021-07-11 09:32:27 +10:00
parent 38faf28378
commit 81ee774c37

View file

@ -0,0 +1,11 @@
--- a/net/minecraft/world/entity/monster/EntitySkeleton.java
+++ b/net/minecraft/world/entity/monster/EntitySkeleton.java
@@ -86,7 +86,7 @@
}
protected void fy() {
- this.a(EntityTypes.STRAY, true);
+ this.a(EntityTypes.STRAY, true, org.bukkit.event.entity.EntityTransformEvent.TransformReason.FROZEN, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.FROZEN); // CraftBukkit - add spawn and transform reasons
if (!this.isSilent()) {
this.level.a((EntityHuman) null, 1048, this.getChunkCoordinates(), 0);
}