Ensure previous rebuild thread reference is cleared

This commit is contained in:
embeddedt 2023-02-11 12:27:20 -05:00
parent af63b3ed11
commit 99758ba9de
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -51,6 +51,7 @@ public class BlockStateCacheHandler {
throw new RuntimeException("Don't interrupt Minecraft threads", e);
}
ModernFix.LOGGER.debug("Rebuild thread exited");
currentRebuildThread = null;
}
if(force || needToBake()) {
ArrayList<BlockState> stateList = new ArrayList<>(Block.BLOCK_STATE_REGISTRY.size());