[SPIGOT-2886] Call BlockFormEvent when Lava and Water collide and create Obsidian/Cobblestone/Stone Created: 04/Dec/16 Updated: 09/Dec/16 Resolved: 09/Dec/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | Brokkonaut | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | Craftbukkit, blocks |
Attachments: |
![]() |
Description |
Currently no event is called when Obsidian/Cobblestone/Stone is created, so it is not cancellable. The BlockFormEvent should be called in this cases and if cancelled no block should form. |
Comments |
Comment by md_5 [ 04/Dec/16 ] |
BlockFromToEvent is the correct event - and it is already called for stone. |
Comment by Brokkonaut [ 04/Dec/16 ] |
Attached is a test plugin for this PR - There is a single command /flowtest to toggle between blocking all BlockFormEvents or not blocking them |
Comment by Brokkonaut [ 04/Dec/16 ] |
PR: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/328/overview |