[SPIGOT-4099] placing concrete powder next to water doesn't trigger BlockFormEvent Created: 20/Jul/18 Updated: 21/Jul/18 Resolved: 21/Jul/18 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | gizmo | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | 1.13-pre7, BlockFormEvent, concrete, concrete_powder | ||
Environment: |
java8 windows |
Version: | git-Spigot-751edf9-7c0f69e (MC: 1.13-pre7) (Implementing API version 1.13-pre7-R0.1-SNAPSHOT) |
Description |
Placing concrete powder next to water doesn't trigger BlockFormEvent. @EventHandler public void onBlockForm(BlockFormEvent evt) { System.out.println("Block Formed"); } doesn't trigger when concrete powder is placed next to water, however it does when water is placed next to concrete powder.
Please copy and paste this statement to the bottom of your report to indicate that you have read and understood it. |
Comments |
Comment by gizmo [ 21/Jul/18 ] |
1.12 triggers the BlockFormEvent as expected. Next to water means directly adjacent to a water source block or flowing water block.
I'm sorry, I know this is a tedious process, i'm trying, honest. will attempt to be more specific and verbose in the future. |
Comment by md_5 [ 20/Jul/18 ] |
And 1.12.2? Please be specific in your bug reports. |
Comment by gizmo [ 20/Jul/18 ] |
no worries. |
Comment by Hex [ 20/Jul/18 ] |
Sorry, you're right, I misread the docs. This would indeed be a bug. |
Comment by gizmo [ 20/Jul/18 ] |
no i don't believe BlockFromToEvent is the correct event. It says in the API docs that BlockFromToEvent is for when liquids flow and when dragon eggs teleport. The act of placing concrete powder next to water causes the concrete powder to Form into concrete, therefore BlockFormEvent.
Also, the docs agree with BlockFormEvent being the correct event. https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockFormEvent.html |
Comment by Hex [ 20/Jul/18 ] |
The proper event is BlockFromToEvent, no? |