mould helper: moved scrolling to tick end. mould helper bugging out when selecting best moul because race condition between game tick widget update and client thread scroll script.

This commit is contained in:
Louis Hong
2024-11-09 11:30:18 -08:00
parent 723ca31093
commit 703dd6ff97

View File

@@ -114,7 +114,7 @@ public class MouldHelper
int height = scrollList.getHeight();
int scrollMax = scrollList.getScrollHeight();
Widget finalBestWidget = bestWidget;
clientThread.invokeLater(() ->
clientThread.invokeAtTickEnd(() ->
{
if (finalBestWidget != null)
{