ui/client thread race condition: moved lava/waterfall state machine logic into the client thread

so it's synced with the client thread.
This commit is contained in:
Louis Hong
2024-11-09 09:33:43 -08:00
parent 74d8f531d6
commit f58e5ad868

View File

@@ -279,7 +279,8 @@ public class EasyGiantsFoundryPlugin extends Plugin
@Subscribe
public void onMenuOptionClicked(MenuOptionClicked event)
{
clientThread.invokeAtTickEnd(() ->
{
if (!(event.getMenuAction() == MenuAction.GAME_OBJECT_FIRST_OPTION
|| event.getMenuAction() == MenuAction.GAME_OBJECT_SECOND_OPTION
|| event.getMenuAction() == MenuAction.GAME_OBJECT_THIRD_OPTION
@@ -332,6 +333,8 @@ public class EasyGiantsFoundryPlugin extends Plugin
{
state.heatActionStateMachine.stop();
}
});
}
@Subscribe