2020-06-30 04:18:39 +02:00
|
|
|
--- a/net/minecraft/server/BehaviorWorkComposter.java
|
|
|
|
+++ b/net/minecraft/server/BehaviorWorkComposter.java
|
|
|
|
@@ -11,7 +11,7 @@
|
|
|
|
public BehaviorWorkComposter() {}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
- protected void a(WorldServer worldserver, EntityVillager entityvillager) {
|
|
|
|
+ protected void doWork(WorldServer worldserver, EntityVillager entityvillager) { // PAIL
|
|
|
|
Optional<GlobalPos> optional = entityvillager.getBehaviorController().getMemory(MemoryModuleType.JOB_SITE);
|
|
|
|
|
|
|
|
if (optional.isPresent()) {
|
2020-08-11 23:00:00 +02:00
|
|
|
@@ -30,7 +30,7 @@
|
|
|
|
BlockPosition blockposition = globalpos.getBlockPosition();
|
2020-07-05 00:53:26 +02:00
|
|
|
|
|
|
|
if ((Integer) iblockdata.get(BlockComposter.a) == 8) {
|
2020-08-11 23:00:00 +02:00
|
|
|
- iblockdata = BlockComposter.d(iblockdata, (World) worldserver, blockposition);
|
|
|
|
+ iblockdata = BlockComposter.d(iblockdata, (World) worldserver, blockposition, entityvillager); // CraftBukkit
|
2020-07-05 00:53:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int i = 20;
|
2020-08-11 23:00:00 +02:00
|
|
|
@@ -55,7 +55,7 @@
|
2020-06-30 04:18:39 +02:00
|
|
|
i -= k1;
|
|
|
|
|
|
|
|
for (int l1 = 0; l1 < k1; ++l1) {
|
2020-08-11 23:00:00 +02:00
|
|
|
- iblockdata1 = BlockComposter.a(iblockdata1, worldserver, itemstack, blockposition);
|
|
|
|
+ iblockdata1 = BlockComposter.a(iblockdata1, worldserver, itemstack, blockposition, entityvillager); // CraftBukkit
|
|
|
|
if ((Integer) iblockdata1.get(BlockComposter.a) == 7) {
|
|
|
|
this.a(worldserver, iblockdata, blockposition, iblockdata1);
|
2020-06-30 04:18:39 +02:00
|
|
|
return;
|