Skip to content

Commit

Permalink
Fix issue when water stop flowing, if cobblestone generation is trigg…
Browse files Browse the repository at this point in the history
…ered by water flow (#24)
  • Loading branch information
BONNe committed Oct 10, 2019
1 parent 0bef520 commit 9fdd483
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ else if (liquid.equals(Material.WATER))

if (replacedBlock != null)
{
event.setCancelled(this.addon.getGenerator().isReplacementGenerated(replacedBlock));
// Water flow should not be cancelled even if replacement is generated, as replacement block will
// never be in the flow block, as it will always be next block.

this.addon.getGenerator().isReplacementGenerated(replacedBlock);
event.setCancelled(false);
}
}

Expand Down

0 comments on commit 9fdd483

Please sign in to comment.