-
-
Notifications
You must be signed in to change notification settings - Fork 342
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 Viewer#sendBlockProgress #2513
Conversation
* @param y The y position | ||
* @param z The z position | ||
*/ | ||
void resetBlockProgress(int x, int y, int 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.
This is leaking impl details, please remove this method
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.
Wdym it's impl detail. It's must have method if we make limits (from 0 to 1) for progress arg in sendBlockProgress
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.
The server doesn't need any knowledge of the current progress. This is leaking impl details by forcing implmentations to track the progress
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.
Server doesn't have any knowledge of the current progress. It resets only progress that was sent by sendBlockProgress()
so the only knowledge server has is that some plugins used sendBlockProgress()
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 think resetBlockProgress
is necessary because we need a way to remove the crack.
Notes:
- setting progress to 0 does not remove, it just means you began cracking the block.
- as discussed on discord, we will not track progress, however we need to keep somewhere a map of blockpos to destruction id
SpongeAPI | Sponge