From 81ee774c37bf42944549292d97078b6b410cb61c Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 11 Jul 2021 09:32:27 +1000 Subject: [PATCH] SPIGOT-6623: Missing API reasons for entity freezing By: Doc --- .../world/entity/monster/EntitySkeleton.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 paper-server/nms-patches/net/minecraft/world/entity/monster/EntitySkeleton.patch diff --git a/paper-server/nms-patches/net/minecraft/world/entity/monster/EntitySkeleton.patch b/paper-server/nms-patches/net/minecraft/world/entity/monster/EntitySkeleton.patch new file mode 100644 index 0000000000..55d842d3b4 --- /dev/null +++ b/paper-server/nms-patches/net/minecraft/world/entity/monster/EntitySkeleton.patch @@ -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); + }