From 710170ef2d2c8909e3fbdd67108f5b57f447d25f Mon Sep 17 00:00:00 2001 From: Brady Date: Fri, 10 Jan 2020 20:10:16 -0600 Subject: [PATCH] Fix RelativeGoalXZ coordinate mix-up Basically for many months now RelativeGoalXZ produced (~X, ~Y), not (~X, ~Z). --- src/api/java/baritone/api/command/datatypes/RelativeGoalXZ.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/java/baritone/api/command/datatypes/RelativeGoalXZ.java b/src/api/java/baritone/api/command/datatypes/RelativeGoalXZ.java index cd3977b6..c50aab01 100644 --- a/src/api/java/baritone/api/command/datatypes/RelativeGoalXZ.java +++ b/src/api/java/baritone/api/command/datatypes/RelativeGoalXZ.java @@ -37,7 +37,7 @@ public enum RelativeGoalXZ implements IDatatypePost { final IArgConsumer consumer = ctx.getConsumer(); return new GoalXZ( MathHelper.floor(consumer.getDatatypePost(RelativeCoordinate.INSTANCE, (double) origin.x)), - MathHelper.floor(consumer.getDatatypePost(RelativeCoordinate.INSTANCE, (double) origin.y)) + MathHelper.floor(consumer.getDatatypePost(RelativeCoordinate.INSTANCE, (double) origin.z)) ); }