Skip to content

BlockBreakEvent Bug #6757

@noxi69

Description

@noxi69

Plugin information

Bug happens without plugins

Problem description

When breaking a block in Creative mode, if BlockBreakEvent is cancelled, the event is called twice.
I noticed this while testing a plugin that cancels the event — the handler ran twice for a single block break.
This doesn't happen in Survival mode.

Expected behaviour

The BlockBreakEvent should only be called once per block break attempt, even if it is cancelled.

PocketMine-MP version

5.31.0

PHP version

8.2

Server OS

Debian 12

Game version (if applicable)

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category: APIRelated to the plugin APIStatus: UnconfirmedBug has not yet been reproduced by a maintainer

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions