Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 14:50:08 +01:00
21 Zeilen
1.1 KiB
Diff
21 Zeilen
1.1 KiB
Diff
--- a/net/minecraft/server/EntitySpider.java
|
|
+++ b/net/minecraft/server/EntitySpider.java
|
|
@@ -123,7 +123,7 @@
|
|
entityskeleton.setPositionRotation(this.locX(), this.locY(), this.locZ(), this.yaw, 0.0F);
|
|
entityskeleton.prepare(generatoraccess, difficultydamagescaler, enummobspawn, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
entityskeleton.startRiding(this);
|
|
- generatoraccess.addEntity(entityskeleton);
|
|
+ generatoraccess.addEntity(entityskeleton, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.JOCKEY); // CraftBukkit - add SpawnReason
|
|
}
|
|
|
|
if (object == null) {
|
|
@@ -137,7 +137,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
|
|
}
|
|
}
|
|
|