Skip to content

Commit

Permalink
Add ignoreCancelled to BlockFromToEvent to avoid issues when addon al…
Browse files Browse the repository at this point in the history
…lows to place water where it should not be.
  • Loading branch information
BONNe committed Sep 19, 2019
1 parent 3e44046 commit 0bef520
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public MainGeneratorListener(StoneGeneratorAddon addon)
* It cancels this event only if a custom generator manages to change material.
* @param event BlockFromToEvent which result will be overwritten.
*/
@EventHandler(priority = EventPriority.LOW)
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onBlockFromToEvent(BlockFromToEvent event)
{
Block eventSourceBlock = event.getBlock();
Expand Down

0 comments on commit 0bef520

Please sign in to comment.