-
-
Notifications
You must be signed in to change notification settings - Fork 950
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
use prismarine-world #1145
use prismarine-world #1145
Conversation
next steps of this plan :
|
Then (from @Karang )
(this can be done in other PRs, I may copy this content to an issue later) |
PrismarineJS/prismarine-world#42 is required so tests won't fail because we don't have anvil support for all versions |
lib/plugins/blocks.js
Outdated
|
||
const column = columns[key] | ||
const column = bot.world.sync.getColumnAt(loc.chunkCorner.x, loc.chunkCorner.z) |
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.
we should be able to use directly:
const block = bot.world.sync.getBlock(absolutePoint)
also, I think that pworld should do the line:
block.position = loc.floored
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 totally, I was mainly trying to make as little change as possible while making it works
I'll clean this up
Yeah didn't have time to continue this. I think it's quite doable, must be just a small detail that isn't right |
2d52c7c
to
5f51042
Compare
needed to merge this:
|
After the followup on this, bot.blockAt will be deprecated, bot.world.getBlock should be used. (that'll be when everything of the world is ported to prismarine-world) |
Ok fixed the tests |
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 good, left 2 minor comments.
No description provided.