From 956c82a9c79c1ad62d77c913737287daf54b607f Mon Sep 17 00:00:00 2001 From: mat1jaczyyy Date: Fri, 7 Jan 2022 11:41:54 +0100 Subject: [PATCH] PPT: Restore Inputs on game start --- Zetris.PPT/PPTBot.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zetris.PPT/PPTBot.cs b/Zetris.PPT/PPTBot.cs index 8290707..4961d3d 100644 --- a/Zetris.PPT/PPTBot.cs +++ b/Zetris.PPT/PPTBot.cs @@ -238,6 +238,8 @@ void runLogic() { useEngineFrames(); refreshEngineTimeout(); + + RestoreManual(); } current = GameHelper.Instance.getCurrentPiece.Call(playerID); @@ -730,7 +732,7 @@ public void RestoreManual() { doingManualInput = false; - Dispatcher.CurrentDispatcher.Invoke(() => { + Window?.Dispatcher.InvokeAsync(() => { if (_btn != null) _btn.MaxHeight = 0; }); }