-
-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update HighwayBuilder.java #4644
Conversation
kind of prevents y-level change
Fixes y-level change issue |
private void constantAxis(Vec3d initPos) { | ||
|
||
// Get to old y-level if offset | ||
if ((int) mc.player.getY() < (int) initPos.getY()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really necessary to cast both to int?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really
|
||
} else BlockUtils.breakBlock(mc.player.getBlockPos().up(2), true); | ||
|
||
} else if ((int) mc.player.getY() > (int) initPos.getY()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again same question
Type of change
Description
Kind of fixes y-level change issue
Related issues
Mention any issues that this pr relates to.
How Has This Been Tested?
Minecraft_.1.20.6.-.Singleplayer.2024-06-14.18-22-55.-.Trim.mp4
Checklist: