[SPIGOT-296] BlockDispenseEvent and bonemeal Created: 27/Dec/14  Updated: 04/Jan/15  Resolved: 04/Jan/15

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

Type: Bug Priority: Major
Reporter: David McCauley Assignee: Thinkofname
Resolution: Fixed Votes: 0
Labels: 1.8, bug, crash, spigot
Environment:

Windows 7 and Linux (version unknown)


Plugin: Any plugin trying to despense item ID

 Description   

If in a block dispense event you set the item to be dispensed to ink sack, rose red, cactus green, cocoa beans, lapis lazuli, purple dye, cyan dye, light gray dye, gray dye, pink dye, lime dye, dandelion yellow, magenta dye, orange dye, or bonemeal, or anything else that I may have missed with item ID 351, the server repeatedly creates a new block dispense event when event.setItem() is called.

Because the newly fired event will go through your code that is listening to the event, it will throw the server into an infinite loop resulting in this beautiful error in your console: http://pastebin.com/q50Sc66a

A very similar error appears in the crash report: http://pastebin.com/XDbADfjm

Note that when I use setItem(), I am setting it for a dropper.

Please let me know if you need any more information.



 Comments   
Comment by David McCauley [ 03/Jan/15 ]

still a problem in version git-Spigot-eb39b47-0899683

Comment by David McCauley [ 27/Dec/14 ]

Plugin should say:
Any plugin trying to despense item ID 351

Generated at Mon Apr 21 21:19:18 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.