From 8aa84fc23cd483f46d83f7bea9bea618c87d104e Mon Sep 17 00:00:00 2001 From: PhanaticD Date: Tue, 15 Jan 2019 01:10:57 -0500 Subject: [PATCH] potentially fix CME reverting all tempblocks --- src/com/projectkorra/projectkorra/util/TempBlock.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/projectkorra/projectkorra/util/TempBlock.java b/src/com/projectkorra/projectkorra/util/TempBlock.java index 218feca4..ec83f249 100644 --- a/src/com/projectkorra/projectkorra/util/TempBlock.java +++ b/src/com/projectkorra/projectkorra/util/TempBlock.java @@ -89,8 +89,12 @@ public class TempBlock { } if (REVERT_QUEUE != null) { for (final TempBlock tempblock : REVERT_QUEUE) { - tempblock.revertBlock(); + tempblock.state.update(true); + if (tempblock.revertTask != null) { + tempblock.revertTask.run(); + } } + REVERT_QUEUE.clear(); } }