Skip to content

Commit 87125ba

Browse files
committed
Almost no loading screen
1 parent 4087ea3 commit 87125ba

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main/java/io/github/axolotlclient/mixin/MinecraftClientMixin.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
@Mixin(MinecraftClient.class)
3232
public abstract class MinecraftClientMixin {
3333

34-
3534
@Shadow @Final private String gameVersion;
3635

3736
@Shadow public GameOptions options;
@@ -43,7 +42,15 @@ public abstract class MinecraftClientMixin {
4342
@Shadow private TextureManager textureManager;
4443

4544
/**
46-
* @author meohreag
45+
* @author TheKodeToad & Sk1erLLC (initially created this fix).
46+
* @reason unnecessary garbage collection
47+
*/
48+
@Redirect(method = "connect(Lnet/minecraft/client/world/ClientWorld;Ljava/lang/String;)V", at = @At(value = "INVOKE", target = "Ljava/lang/System;gc()V"))
49+
public void noWorldGC() {
50+
}
51+
52+
/**
53+
* @author moehreag
4754
* @reason Customize Window title for use in AxolotlClient
4855
*/
4956
@Inject(method = "setPixelFormat", at = @At("TAIL"))

0 commit comments

Comments
 (0)