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

Send start/stop mining block_dig events to server, in sync with player actions, instead of mineflayer dig() #51

Open
deathcap opened this issue Feb 20, 2016 · 0 comments

Comments

@deathcap
Copy link
Member

Currently when you click a block, voxel-clientmc will call mineflayer's dig() method, which handles starting and stopping digging. So you only need to hit it once, then mining will occur after it is complete, regardless of whether you continue mining. What should happen is when the player starts mining, it sends block_dig with digging start, and block_dig with digging stop when the player stops, so that if you do not fully mine the block client-side, is it not mined server-side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant