Skip to content

Commit

Permalink
Re-add particles when changing block safety (removed by PR #18).
Browse files Browse the repository at this point in the history
  • Loading branch information
totemo committed Oct 6, 2019
1 parent ffc76df commit 990d653
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nu/nerd/SafeBuckets/SafeBuckets.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ static void setSafe(Block block, boolean safe) {
BlockStoreApi.removeBlockMeta(block, PLUGIN, METADATA_KEY);
}

if (CONFIG.SHOW_PARTICLES) {
Bukkit.getScheduler().runTaskLater(PLUGIN, () -> Util.showParticles(block, isSafe(block)), 1);
}

// force block updates (note: can be simplified once Spigot adds new block update method
// see: https://hub.spigotmc.org/jira/browse/SPIGOT-4759
if (!safe) {
Expand Down

0 comments on commit 990d653

Please sign in to comment.