[SPIGOT-7329] Cancelling BlockPlaceEvent and placing down bed may cause drops to dupe Created: 07/Apr/23  Updated: 25/Dec/24  Resolved: 07/Apr/23

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

Type: Bug Priority: Major
Reporter: Omer Ben Gera Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates SPIGOT-7315 Bed placement duplicates crops if can... Resolved
Version: This server is running CraftBukkit version 3719-Spigot-d2fdfe3-1eb8837 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

When having a plugin that cancels BlockPlaceEvent, if you place a bed on top of a crop in a dark room, it will be duped.
I suspect it is because the block placement updates the crop below and because it is in a dark room, it is dropped. However, the event is cancelled, so nothing really happens, but because the crop was already dropped, you can do it again and again resulting many crops being dropped.

It seems like this bug is from at least 1.17, as can be seen in this patch that was made for WorldGuard a while ago:
https://www.youtube.com/watch?v=OZ99W8jlnfY&t=3s

(You must do it in a dark room, otherwise it will not occur)



 Comments   
Comment by Black Hole [ 07/Apr/23 ]

This issue is already tracked unter SPIGOT-7315

Comment by Omer Ben Gera [ 07/Apr/23 ]

The "patch" basically cancels the PlayerInteractEvent which seems to do the job.

Generated at Sat Dec 13 20:50:04 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.