mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
SPIGOT-6623: Missing API reasons for entity freezing
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
38faf28378
commit
81ee774c37
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue