Commit 99fe86cb239373904df3f9a00b577e170682b3b9
1 parent
0096b127
completely disable loading bar when loadingbar=false is set in the properties
Showing
2 changed files
with
7 additions
and
1 deletions
java/common/com/mumfrey/liteloader/core/LiteLoaderBootstrap.java
| @@ -311,12 +311,13 @@ class LiteLoaderBootstrap implements LoaderBootstrap, LoaderEnvironment, LoaderP | @@ -311,12 +311,13 @@ class LiteLoaderBootstrap implements LoaderBootstrap, LoaderEnvironment, LoaderP | ||
| 311 | @Override | 311 | @Override |
| 312 | public void preBeginGame() | 312 | public void preBeginGame() |
| 313 | { | 313 | { |
| 314 | - LoadingProgress.setEnabled(this.getAndStoreBooleanProperty(LoaderProperties.OPTION_LOADING_BAR, true)); | ||
| 315 | LiteAPI api = this.getAPIProvider().getAPI("liteloader"); | 314 | LiteAPI api = this.getAPIProvider().getAPI("liteloader"); |
| 316 | if (api instanceof LiteLoaderCoreAPI) | 315 | if (api instanceof LiteLoaderCoreAPI) |
| 317 | { | 316 | { |
| 318 | ((LiteLoaderCoreAPI)api).getObjectFactory().preBeginGame(); | 317 | ((LiteLoaderCoreAPI)api).getObjectFactory().preBeginGame(); |
| 319 | } | 318 | } |
| 319 | + | ||
| 320 | + LoadingProgress.setEnabled(this.getAndStoreBooleanProperty(LoaderProperties.OPTION_LOADING_BAR, true)); | ||
| 320 | } | 321 | } |
| 321 | 322 | ||
| 322 | /* (non-Javadoc) | 323 | /* (non-Javadoc) |
java/common/com/mumfrey/liteloader/launch/LiteLoaderTweaker.java
| @@ -325,6 +325,11 @@ public class LiteLoaderTweaker implements ITweaker | @@ -325,6 +325,11 @@ public class LiteLoaderTweaker implements ITweaker | ||
| 325 | */ | 325 | */ |
| 326 | private void onPreBeginGame() | 326 | private void onPreBeginGame() |
| 327 | { | 327 | { |
| 328 | + if (StartupState.BEGINGAME.isCompleted()) | ||
| 329 | + { | ||
| 330 | + return; | ||
| 331 | + } | ||
| 332 | + | ||
| 328 | StartupState.BEGINGAME.gotoState(); | 333 | StartupState.BEGINGAME.gotoState(); |
| 329 | try | 334 | try |
| 330 | { | 335 | { |