Don't print interruption message if thread finished

This commit is contained in:
embeddedt 2023-02-17 21:47:37 -05:00
parent 312fb4c6f5
commit a5d91fb4fb
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -41,7 +41,8 @@ public class BlockStateCacheHandler {
public static void rebuildParallel(boolean force) {
if(currentRebuildThread != null) {
ModernFix.LOGGER.warn("Interrupting previous blockstate cache rebuild");
if(currentRebuildThread.isAlive())
ModernFix.LOGGER.warn("Interrupting previous blockstate cache rebuild");
currentRebuildThread.stopRebuild();
try {
currentRebuildThread.join(10000);