only optimize game settings if we are going to be auto testing

This commit is contained in:
Leijurv 2018-09-26 13:45:18 -07:00
parent 40a3177ae7
commit 9094c712d6
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -47,6 +47,9 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper {
* Called right after the {@link GameSettings} object is created in the {@link Minecraft} instance.
*/
public void onPreInit() {
if (!BaritoneAutoTest.ENABLE_AUTO_TEST || !"true".equals(System.getenv("BARITONE_AUTO_TEST"))) {
return;
}
System.out.println("Optimizing Game Settings");
GameSettings s = mc.gameSettings;