Skip to content

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

@deathcap

Description

@deathcap

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions