Skip to content

Cancelled EntityShootBowEvents/ProjectileLaunchEvents still consume arrows #12123

@notTamion

Description

@notTamion

Expected behavior

Cancelling the events causes the arrow(s) to not be consumed

Observed/Actual behavior

The arrows are consumed anyways

Steps/models to reproduce

Cancel EntityShootBowEvents or ProjectileLaunchEvents and fire a bow or crossbow and observe your arrow stack count/the crossbow unloading without firing an arrow.

Plugin and Datapack List

only testing plugin

Paper version

1.21.4#152

Other

This happens because the arrow is already removed from the inventory/crossbow before the events are even called

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.4Game version 1.21.4

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions