Reconsider item selection thread search
kirderf1 opened this issue ยท 1 comments
The item/fluid selection menu has a text search functionality which performs its text search on a separate thread. While some improvements were made in #556 (use of Future and a thread pool), I realise that more should likely be done regarding thread safety.
Primarily, I want to look at how feasible it is to move the text search to the main thread, including if any relevant optimisations are made.
Failing that, extra care should be taken to guard against potenial threading issues (item list initialization is probably better done on the main thread, for example). It should also be looked at if minecraft provides a thread pool that would be relevant to use.