Fix RelativeGoalXZ coordinate mix-up

Basically for many months now RelativeGoalXZ produced (~X, ~Y), not (~X, ~Z).
This commit is contained in:
Brady 2020-01-10 20:10:16 -06:00
parent fb22cf05eb
commit 710170ef2d
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -37,7 +37,7 @@ public enum RelativeGoalXZ implements IDatatypePost<GoalXZ, BetterBlockPos> {
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))
);
}