Remove the Thread.sleep in BaseMainActivity, make MCOptionUtils use ArrayMap instead of List

This commit is contained in:
artdeell 2021-07-04 14:59:44 +03:00
parent c0034126ca
commit 0020c4deb2
2 changed files with 16 additions and 28 deletions

View file

@ -1230,7 +1230,6 @@ public class BaseMainActivity extends LoggableActivity {
public void getMcScale() {
//Get the scale stored in game files, used auto scale if found or if the stored scaled is bigger than the authorized size.
MCOptionUtils.load();
try { Thread.sleep(200); } catch (Throwable th) {}
String str = MCOptionUtils.get("guiScale");
this.guiScale = (str == null ? 0 :Integer.parseInt(str));