Commit 99fe86cb239373904df3f9a00b577e170682b3b9

Authored by Mumfrey
1 parent 0096b127

completely disable loading bar when loadingbar=false is set in the properties

java/common/com/mumfrey/liteloader/core/LiteLoaderBootstrap.java
... ... @@ -311,12 +311,13 @@ class LiteLoaderBootstrap implements LoaderBootstrap, LoaderEnvironment, LoaderP
311 311 @Override
312 312 public void preBeginGame()
313 313 {
314   - LoadingProgress.setEnabled(this.getAndStoreBooleanProperty(LoaderProperties.OPTION_LOADING_BAR, true));
315 314 LiteAPI api = this.getAPIProvider().getAPI("liteloader");
316 315 if (api instanceof LiteLoaderCoreAPI)
317 316 {
318 317 ((LiteLoaderCoreAPI)api).getObjectFactory().preBeginGame();
319 318 }
  319 +
  320 + LoadingProgress.setEnabled(this.getAndStoreBooleanProperty(LoaderProperties.OPTION_LOADING_BAR, true));
320 321 }
321 322  
322 323 /* (non-Javadoc)
... ...
java/common/com/mumfrey/liteloader/launch/LiteLoaderTweaker.java
... ... @@ -325,6 +325,11 @@ public class LiteLoaderTweaker implements ITweaker
325 325 */
326 326 private void onPreBeginGame()
327 327 {
  328 + if (StartupState.BEGINGAME.isCompleted())
  329 + {
  330 + return;
  331 + }
  332 +
328 333 StartupState.BEGINGAME.gotoState();
329 334 try
330 335 {
... ...