Skip to content

Commit f3f8b2f

Browse files
authored
Merge pull request #17 from TheKodeToad/worldswap
Faster world swapping Thanks! (maybe ping me when you open a pr then I'll merge it quicker)
2 parents eebeb13 + 87125ba commit f3f8b2f

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
@@ -32,7 +32,6 @@
3232
@Mixin(MinecraftClient.class)
3333
public abstract class MinecraftClientMixin {
3434

35-
3635
@Shadow @Final private String gameVersion;
3736

3837
@Shadow public GameOptions options;
@@ -46,7 +45,15 @@ public abstract class MinecraftClientMixin {
4645
@Shadow private Framebuffer fbo;
4746

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

0 commit comments

Comments
 (0)