Skip to content

BlockDropItemEvent has no items for item frame drop event #10187

@vanquesh

Description

@vanquesh

Expected behavior

When a block with an item frame on it is destroyed the item frame will also be destroyed. It is my understanding that this event is supposed to fire when that happens, and it does, but I expect the event.getItems() method to return an array containing the item frame that is being dropped.

Observed/Actual behavior

The event fires twice, but the event.getItems() method returns an empty array both times.

Steps/models to reproduce

  • Place an item frame on a block
  • Destroy the block
  • Watch the item frame convert from an entity to a dropped item
  • The event fires for block type AIR but the getItems() method returns an empty array

Plugin and Datapack List

Custom plugin, no datapack

Paper version

This server is running Paper version git-Paper-393 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: b48d737)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution: invalidIssue or Request has no basis.type: bugSomething doesn't work as it was intended to.

    Type

    No fields configured for Bug.

    Projects

    Status

    Invalid

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions