summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntitySpider.patch
blob: 4c7b19b31edee52acf746f0d3a25dfeb8a3ab77c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/EntitySpider.java
+++ b/net/minecraft/server/EntitySpider.java
@@ -115,7 +115,7 @@
 
             entityskeleton.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, 0.0F);
             entityskeleton.prepare(difficultydamagescaler, (GroupDataEntity) null);
-            this.world.addEntity(entityskeleton);
+            this.world.addEntity(entityskeleton, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.JOCKEY); // CraftBukkit - add SpawnReason
             entityskeleton.startRiding(this);
         }