@@ -1,10 +1,10 @@
|
||||
--- a/net/minecraft/server/PathfinderGoalHorseTrap.java
|
||||
+++ b/net/minecraft/server/PathfinderGoalHorseTrap.java
|
||||
@@ -18,16 +18,17 @@
|
||||
this.a.s(false);
|
||||
@@ -20,16 +20,17 @@
|
||||
this.a.r(false);
|
||||
this.a.setTamed(true);
|
||||
this.a.setAgeRaw(0);
|
||||
- this.a.world.strikeLightning(new EntityLightning(this.a.world, this.a.locX, this.a.locY, this.a.locZ, true));
|
||||
- ((WorldServer) this.a.world).strikeLightning(new EntityLightning(this.a.world, this.a.locX, this.a.locY, this.a.locZ, true));
|
||||
+ ((WorldServer) this.a.world).strikeLightning(new EntityLightning(this.a.world, this.a.locX, this.a.locY, this.a.locZ, true), org.bukkit.event.weather.LightningStrikeEvent.Cause.TRAP); // CraftBukkit
|
||||
EntitySkeleton entityskeleton = this.a(difficultydamagescaler, this.a);
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
entityhorseabstract.f(this.a.getRandom().nextGaussian() * 0.5D, 0.0D, this.a.getRandom().nextGaussian() * 0.5D);
|
||||
}
|
||||
|
||||
@@ -42,7 +43,7 @@
|
||||
entityhorseskeleton.di();
|
||||
@@ -44,7 +45,7 @@
|
||||
entityhorseskeleton.setPersistent();
|
||||
entityhorseskeleton.setTamed(true);
|
||||
entityhorseskeleton.setAgeRaw(0);
|
||||
- entityhorseskeleton.world.addEntity(entityhorseskeleton);
|
||||
@@ -30,7 +30,7 @@
|
||||
return entityhorseskeleton;
|
||||
}
|
||||
|
||||
@@ -59,7 +60,7 @@
|
||||
@@ -61,7 +62,7 @@
|
||||
|
||||
entityskeleton.setSlot(EnumItemSlot.MAINHAND, EnchantmentManager.a(entityskeleton.getRandom(), entityskeleton.getItemInMainHand(), (int) (5.0F + difficultydamagescaler.d() * (float) entityskeleton.getRandom().nextInt(18)), false));
|
||||
entityskeleton.setSlot(EnumItemSlot.HEAD, EnchantmentManager.a(entityskeleton.getRandom(), entityskeleton.getEquipment(EnumItemSlot.HEAD), (int) (5.0F + difficultydamagescaler.d() * (float) entityskeleton.getRandom().nextInt(18)), false));
|
||||
|
||||
Reference in New Issue
Block a user