[SPIGOT-6503] BlockBreakEvent.isDropItems() method always returns true Created: 11/Jun/21  Updated: 15/Jun/21

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jack Myrick Assignee: Martoph
Resolution: Unresolved Votes: 0
Labels: event, spigot
Environment:

OS: Windows 10 64 bit

Locally hosted server (Intel processor)


Version: [23:42:16 INFO]: This server is running CraftBukkit version 3083-Spigot-9fb885e-9c7acb6 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT) [23:42:16 INFO]: You are 11 version(s) behind
Guidelines Read: Yes

 Description   

When I use the BlockBreakEvent.isDropItems() method, it always returns true, even if no items are dropped because the player is in creative mode. I want to use this method to check if items are being dropped from a block, but it does not work as it should. It should return false if no items are being dropped, if for example the player is in creative mode or some other reason I can't think of.



 Comments   
Comment by Jack Myrick [ 15/Jun/21 ]

I did not know about that event. Thank you!

Comment by Vincent [ 13/Jun/21 ]

Have you considered BlockDropItemEvent?

Generated at Thu Apr 03 16:47:36 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.