-
-
Notifications
You must be signed in to change notification settings - Fork 920
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
Add direction support to activateBlock, openBlock #2039
Add direction support to activateBlock, openBlock #2039
Conversation
failing tests |
Jeah and this would break anything still using callbacks. So I think I will put this on hold until callbacks are gone. |
blocked by #1482 |
Can you rebase this on master @IceTank ? |
7147947
to
c05689e
Compare
@@ -338,8 +338,8 @@ function inject (bot, { version, hideErrors }) { | |||
} | |||
} | |||
|
|||
async function openBlock (block) { | |||
bot.activateBlock(block) | |||
async function openBlock (block, direction, cursorPos) { |
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.
looks like you forgot the default here
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.
Yeah I just noticed that there are also types missing
|
Resolve conflicts please |
32e49e3
to
e87992e
Compare
e87992e
to
20bc786
Compare
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.
LGTM
Why? Because you cannot open containers if they are at y level 255 because you cannot activate blocks from the top at y level 255. So openContainer does not work at y 255.