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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user