smaller cuter boxes for goaltwoblocks
This commit is contained in:
parent
3261687ee0
commit
9052781889
@ -70,7 +70,7 @@ public class GoalTwoBlocks implements Goal, IGoalRenderPos {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public BlockPos getGoalPos() {
|
public BlockPos getGoalPos() {
|
||||||
return new BlockPos(x, y - 1, z);
|
return new BlockPos(x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -20,6 +20,7 @@ package baritone.utils;
|
|||||||
import baritone.Baritone;
|
import baritone.Baritone;
|
||||||
import baritone.pathing.goals.Goal;
|
import baritone.pathing.goals.Goal;
|
||||||
import baritone.pathing.goals.GoalComposite;
|
import baritone.pathing.goals.GoalComposite;
|
||||||
|
import baritone.pathing.goals.GoalTwoBlocks;
|
||||||
import baritone.pathing.goals.GoalXZ;
|
import baritone.pathing.goals.GoalXZ;
|
||||||
import baritone.pathing.path.IPath;
|
import baritone.pathing.path.IPath;
|
||||||
import baritone.utils.interfaces.IGoalRenderPos;
|
import baritone.utils.interfaces.IGoalRenderPos;
|
||||||
@ -191,10 +192,18 @@ public final class PathRenderer implements Helper {
|
|||||||
minZ = goalPos.getZ() + 0.002 - renderPosZ;
|
minZ = goalPos.getZ() + 0.002 - renderPosZ;
|
||||||
maxZ = goalPos.getZ() + 1 - 0.002 - renderPosZ;
|
maxZ = goalPos.getZ() + 1 - 0.002 - renderPosZ;
|
||||||
double y = MathHelper.cos((float) (((float) ((System.nanoTime() / 100000L) % 20000L)) / 20000F * Math.PI * 2));
|
double y = MathHelper.cos((float) (((float) ((System.nanoTime() / 100000L) % 20000L)) / 20000F * Math.PI * 2));
|
||||||
|
if (goal instanceof GoalTwoBlocks) {
|
||||||
|
y /= 2;
|
||||||
|
}
|
||||||
y1 = 1 + y + goalPos.getY() - renderPosY;
|
y1 = 1 + y + goalPos.getY() - renderPosY;
|
||||||
y2 = 1 - y + goalPos.getY() - renderPosY;
|
y2 = 1 - y + goalPos.getY() - renderPosY;
|
||||||
minY = goalPos.getY() - renderPosY;
|
minY = goalPos.getY() - renderPosY;
|
||||||
maxY = minY + 2;
|
maxY = minY + 2;
|
||||||
|
if (goal instanceof GoalTwoBlocks) {
|
||||||
|
y1 -= 0.5;
|
||||||
|
y2 -= 0.5;
|
||||||
|
maxY--;
|
||||||
|
}
|
||||||
} else if (goal instanceof GoalXZ) {
|
} else if (goal instanceof GoalXZ) {
|
||||||
GoalXZ goalPos = (GoalXZ) goal;
|
GoalXZ goalPos = (GoalXZ) goal;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user