From 990d653c0d49ef2dd27c5b1517af4b1b2c5eabb4 Mon Sep 17 00:00:00 2001 From: totemo Date: Sun, 6 Oct 2019 21:36:29 +1030 Subject: [PATCH] Re-add particles when changing block safety (removed by PR #18). --- src/nu/nerd/SafeBuckets/SafeBuckets.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nu/nerd/SafeBuckets/SafeBuckets.java b/src/nu/nerd/SafeBuckets/SafeBuckets.java index ac6ef6c..cccbd14 100755 --- a/src/nu/nerd/SafeBuckets/SafeBuckets.java +++ b/src/nu/nerd/SafeBuckets/SafeBuckets.java @@ -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) {