This commit is contained in:
@@ -58,9 +58,12 @@ public abstract class MoveItemsTaskMixin extends MultiTickTask<PathAwareEntity>
|
||||
// if block is farmland
|
||||
if (blockState.isOf(Blocks.FARMLAND) && world.isAir(pos.up())) {
|
||||
Copperfarmers.LOGGER.debug("Found farmland at " + pos);
|
||||
callbackInfo
|
||||
.setReturnValue(Optional.of(new MoveItemsTask.Storage(pos, null, null, blockState)));
|
||||
return;
|
||||
if (Math.random() < 0.5) {
|
||||
callbackInfo
|
||||
.setReturnValue(
|
||||
Optional.of(new MoveItemsTask.Storage(pos, null, null, blockState)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user