Slight clean up of MCOptionsUtils (#1586)

* Clean up MCOptionUtils.java

* Use of explicit type conversion to string.
This commit is contained in:
Boulay Mathias 2021-06-25 00:11:58 +02:00 committed by GitHub
parent bca639b809
commit 14d9d2b177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 23 deletions

View file

@ -690,8 +690,8 @@ public class BaseMainActivity extends LoggableActivity {
//Load Minecraft options:
MCOptionUtils.load();
MCOptionUtils.set("overrideWidth", ""+CallbackBridge.windowWidth);
MCOptionUtils.set("overrideHeight", ""+CallbackBridge.windowHeight);
MCOptionUtils.set("overrideWidth", String.valueOf(CallbackBridge.windowWidth));
MCOptionUtils.set("overrideHeight", String.valueOf(CallbackBridge.windowHeight));
MCOptionUtils.save();
getMcScale();
// Should we do that?