@@ -1,13 +1,13 @@
|
||||
--- a/net/minecraft/server/EntityAnimal.java
|
||||
+++ b/net/minecraft/server/EntityAnimal.java
|
||||
@@ -8,6 +8,7 @@
|
||||
protected Block bA;
|
||||
private int bx;
|
||||
private UUID by;
|
||||
protected Block bF;
|
||||
private int bC;
|
||||
private UUID bD;
|
||||
+ public ItemStack breedItem; // CraftBukkit - Add breedItem variable
|
||||
|
||||
public EntityAnimal(World world) {
|
||||
super(world);
|
||||
protected EntityAnimal(EntityTypes<?> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -41,6 +42,9 @@
|
||||
|
||||
}
|
||||
@@ -24,11 +24,11 @@
|
||||
}
|
||||
+ // CraftBukkit end */
|
||||
|
||||
public float a(BlockPosition blockposition) {
|
||||
return this.world.getType(blockposition.down()).getBlock() == this.bA ? 10.0F : this.world.n(blockposition) - 0.5F;
|
||||
@@ -130,6 +135,7 @@
|
||||
public float a(BlockPosition blockposition, IWorldReader iworldreader) {
|
||||
return iworldreader.getType(blockposition.down()).getBlock() == this.bF ? 10.0F : iworldreader.A(blockposition) - 0.5F;
|
||||
@@ -134,6 +139,7 @@
|
||||
if (entityhuman != null) {
|
||||
this.by = entityhuman.getUniqueID();
|
||||
this.bD = entityhuman.getUniqueID();
|
||||
}
|
||||
+ this.breedItem = entityhuman.inventory.getItemInHand(); // CraftBukkit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user