2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntitySpider.java
|
|
|
|
+++ b/net/minecraft/server/EntitySpider.java
|
2016-06-09 03:43:49 +02:00
|
|
|
@@ -115,7 +115,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
entityskeleton.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, 0.0F);
|
2018-07-15 02:00:00 +02:00
|
|
|
entityskeleton.prepare(difficultydamagescaler, (GroupDataEntity) null, (NBTTagCompound) null);
|
2014-11-25 22:32:16 +01:00
|
|
|
- this.world.addEntity(entityskeleton);
|
|
|
|
+ this.world.addEntity(entityskeleton, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.JOCKEY); // CraftBukkit - add SpawnReason
|
2016-02-29 22:32:46 +01:00
|
|
|
entityskeleton.startRiding(this);
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
2018-07-20 08:04:37 +02:00
|
|
|
@@ -130,7 +130,7 @@
|
|
|
|
MobEffectList mobeffectlist = ((EntitySpider.GroupDataSpider) object).a;
|
|
|
|
|
|
|
|
if (mobeffectlist != null) {
|
|
|
|
- this.addEffect(new MobEffect(mobeffectlist, Integer.MAX_VALUE));
|
|
|
|
+ this.addEffect(new MobEffect(mobeffectlist, Integer.MAX_VALUE), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.SPIDER_SPAWN); // CraftBukkit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|