From 4d9cf70ea8c12ff2d5ee31d27d3eb40aa4c24f48 Mon Sep 17 00:00:00 2001 From: PhanaticD Date: Thu, 17 Jan 2019 23:06:27 -0500 Subject: [PATCH] better fix for densityshift --- .../projectkorra/earthbending/passive/DensityShift.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/projectkorra/earthbending/passive/DensityShift.java b/src/com/projectkorra/projectkorra/earthbending/passive/DensityShift.java index 71b35d36..00289329 100644 --- a/src/com/projectkorra/projectkorra/earthbending/passive/DensityShift.java +++ b/src/com/projectkorra/projectkorra/earthbending/passive/DensityShift.java @@ -85,10 +85,11 @@ public class DensityShift extends EarthAbility implements PassiveAbility { } public static void revertAllSand() { - Set sandtoremove = new HashSet<>(SAND_BLOCKS); - for (final TempBlock block : sandtoremove) { + for (final TempBlock block : SAND_BLOCKS) { + block.setRevertTask(null); block.revertBlock(); } + SAND_BLOCKS.clear(); } public static void removeAll() {