two small tweaks
This commit is contained in:
parent
1dca02517e
commit
1381d8d94c
@ -82,6 +82,9 @@ public class MovementPillar extends Movement {
|
|||||||
if (placeCost >= COST_INF) {
|
if (placeCost >= COST_INF) {
|
||||||
return COST_INF;
|
return COST_INF;
|
||||||
}
|
}
|
||||||
|
if (fromDown.getBlock() == Blocks.AIR) {
|
||||||
|
placeCost += 0.1; // slightly (1/200th of a second) penalize pillaring on what's currently air
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (from instanceof BlockLiquid || (fromDown.getBlock() instanceof BlockLiquid && context.assumeWalkOnWater)) {
|
if (from instanceof BlockLiquid || (fromDown.getBlock() instanceof BlockLiquid && context.assumeWalkOnWater)) {
|
||||||
// otherwise, if we're standing in water, we cannot pillar
|
// otherwise, if we're standing in water, we cannot pillar
|
||||||
|
@ -82,11 +82,12 @@ public class PathingControlManager implements IPathingControlManager {
|
|||||||
|
|
||||||
public void preTick() {
|
public void preTick() {
|
||||||
inControlLastTick = inControlThisTick;
|
inControlLastTick = inControlThisTick;
|
||||||
|
PathingBehavior p = baritone.getPathingBehavior();
|
||||||
command = doTheStuff();
|
command = doTheStuff();
|
||||||
if (command == null) {
|
if (command == null) {
|
||||||
|
p.cancelSegmentIfSafe();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PathingBehavior p = baritone.getPathingBehavior();
|
|
||||||
switch (command.commandType) {
|
switch (command.commandType) {
|
||||||
case REQUEST_PAUSE:
|
case REQUEST_PAUSE:
|
||||||
p.requestPause();
|
p.requestPause();
|
||||||
|
Loading…
Reference in New Issue
Block a user