Skip to content

Statistic Statistic.MINE_BLOCK is not incremented when drops are turned off via BlockBreakEvent#setDropItems(false) #8931

@CatalysmRL

Description

@CatalysmRL

Expected behavior

The MINE_BLOCK statistic should be incremented regardless of whether it drops items or not

Observed/Actual behavior

The statistic is not incremented when drops are turned off for the block.

Steps/models to reproduce

I created a simple plugin that turns off drops on BlockBreakEvents and messages the player their current MINE_BLOCK statistic

Plugin and Datapack List

Plugins: Only the custom made one described as above to test the behaviour
Datapacks: vanilla, bukkit

Paper version

This server is running Paper version git-Paper-431 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: e574412)
You are running the latest version
Previous version: git-Paper-327 (MC: 1.19.3)

Other

The statistic is also not incremented in creative mode (where also blocks do not drop items upon breaking them). Not sure if this is intended behaviour or also subject to be patched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.upstream: spigotIssues exists in Spigot.version: 1.19Game version 1.19

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions