Skip to content
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

1.18 support #2339

Merged
merged 25 commits into from
Jan 22, 2022
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix minY reference in findBlock
rom1504 committed Jan 20, 2022
commit ed0d61d9e5a383555750b51cf606074b0004cc28
2 changes: 1 addition & 1 deletion lib/plugins/blocks.js
Original file line number Diff line number Diff line change
@@ -209,7 +209,7 @@ function inject (bot, { version, storageBuilder }) {
if (next.y >= 0 && next.y < 16 && column && !visitedSections.has(next.toString())) {
const section = column.sections[next.y]
if (useExtraInfo === true || isBlockInSection(section, matcher)) {
const cursor = new Vec3(next.x * 16, next.y * 16 + bot.game.dimensionData.min_y, next.z * 16)
const cursor = new Vec3(next.x * 16, next.y * 16 + bot.game.minY, next.z * 16)
const end = cursor.offset(16, 16, 16)
for (; cursor.x < end.x; cursor.x++) {
for (; cursor.y < end.y; cursor.y++) {