-
Notifications
You must be signed in to change notification settings - Fork 32
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
Sync world #40
Sync world #40
Conversation
also complete the API and cleanup
this.async = world | ||
} | ||
|
||
initialize (iniFunc, length, width, height = 256, iniPos = new Vec3(0, 0, 0)) { |
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.
I kept a duplicated of this because actually this is quite different : this is using the sync primitive and might fail (do nothing) if columns are not loaded.
Also it might be much faster than the async version
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.
ok
checks pass in flying squid using this PrismarineJS/flying-squid#415 |
going to try using it in mineflayer |
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
PrismarineJS/mineflayer#1145 to try using it in mineflayer |
new one because I don't have push rights to #39
I tried to put it common the methods that could be, but still keeping a mirror in some case in sync for convenience
I explained the logic in the README
I think this is not fully satisfying but it's a good start.
Can you please review @Karang ?