Merge pull request #6 from PhanaticD/wip-1.13

potentially fix CME reverting all tempblocks
This commit is contained in:
Simplicitee 2019-01-17 19:06:34 -05:00 committed by GitHub
commit 081cdc1bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
}