better fix for densityshift

This commit is contained in:
PhanaticD 2019-01-17 23:06:27 -05:00
parent a7fd485308
commit 4d9cf70ea8

View file

@ -85,10 +85,11 @@ public class DensityShift extends EarthAbility implements PassiveAbility {
} }
public static void revertAllSand() { public static void revertAllSand() {
Set<TempBlock> sandtoremove = new HashSet<>(SAND_BLOCKS); for (final TempBlock block : SAND_BLOCKS) {
for (final TempBlock block : sandtoremove) { block.setRevertTask(null);
block.revertBlock(); block.revertBlock();
} }
SAND_BLOCKS.clear();
} }
public static void removeAll() { public static void removeAll() {