@@ -1,20 +0,0 @@
|
||||
--- a/net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter.java
|
||||
+++ b/net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter.java
|
||||
@@ -42,7 +42,7 @@
|
||||
BlockPosition blockposition = globalpos.pos();
|
||||
|
||||
if ((Integer) iblockdata.getValue(BlockComposter.LEVEL) == 8) {
|
||||
- iblockdata = BlockComposter.extractProduce(iblockdata, worldserver, blockposition);
|
||||
+ iblockdata = BlockComposter.extractProduce(iblockdata, worldserver, blockposition, entityvillager); // CraftBukkit
|
||||
}
|
||||
|
||||
int i = 20;
|
||||
@@ -67,7 +67,7 @@
|
||||
i -= k1;
|
||||
|
||||
for (int l1 = 0; l1 < k1; ++l1) {
|
||||
- iblockdata1 = BlockComposter.insertItem(iblockdata1, worldserver, itemstack, blockposition);
|
||||
+ iblockdata1 = BlockComposter.insertItem(iblockdata1, worldserver, itemstack, blockposition, entityvillager); // CraftBukkit
|
||||
if ((Integer) iblockdata1.getValue(BlockComposter.LEVEL) == 7) {
|
||||
this.spawnComposterFillEffects(worldserver, iblockdata, blockposition, iblockdata1);
|
||||
return;
|
||||
@@ -13,7 +13,7 @@
|
||||
public class PathfinderGoalFollowOwner extends PathfinderGoal {
|
||||
|
||||
public static final int TELEPORT_WHEN_DISTANCE_IS = 12;
|
||||
@@ -120,7 +126,18 @@
|
||||
@@ -122,7 +128,18 @@
|
||||
} else if (!this.canTeleportTo(new BlockPosition(i, j, k))) {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
public class PathfinderGoalRemoveBlock extends PathfinderGoalGotoTarget {
|
||||
|
||||
private final Block blockToRemove;
|
||||
@@ -100,6 +105,14 @@
|
||||
@@ -96,6 +101,14 @@
|
||||
}
|
||||
|
||||
if (this.ticksSinceReachedGoal > 60) {
|
||||
|
||||
Reference in New Issue
Block a user