Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/ By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
23
paper-server/nms-patches/PathfinderGoalBreed.patch
Normal file
23
paper-server/nms-patches/PathfinderGoalBreed.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- ../work/decompile-bb26c12b/net/minecraft/server/PathfinderGoalBreed.java 2014-11-27 08:59:46.821421318 +1100
|
||||
+++ src/main/java/net/minecraft/server/PathfinderGoalBreed.java 2014-11-27 08:42:10.164850887 +1100
|
||||
@@ -70,6 +70,11 @@
|
||||
EntityAgeable entityageable = this.d.createChild(this.e);
|
||||
|
||||
if (entityageable != null) {
|
||||
+ // CraftBukkit start - set persistence for tame animals
|
||||
+ if (entityageable instanceof EntityTameableAnimal && ((EntityTameableAnimal) entityageable).isTamed()) {
|
||||
+ entityageable.persistent = true;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
EntityHuman entityhuman = this.d.co();
|
||||
|
||||
if (entityhuman == null && this.e.co() != null) {
|
||||
@@ -89,7 +94,7 @@
|
||||
this.e.cq();
|
||||
entityageable.setAgeRaw(-24000);
|
||||
entityageable.setPositionRotation(this.d.locX, this.d.locY, this.d.locZ, 0.0F, 0.0F);
|
||||
- this.a.addEntity(entityageable);
|
||||
+ this.a.addEntity(entityageable, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING); // CraftBukkit - added SpawnReason
|
||||
Random random = this.d.bb();
|
||||
|
||||
for (int i = 0; i < 7; ++i) {
|
||||
Reference in New Issue
Block a user