File tree Expand file tree Collapse file tree
java/xaeroplus/fabric/gametest/mixin/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package xaeroplus .fabric .gametest .mixin .client ;
2+
3+ import com .llamalad7 .mixinextras .injector .ModifyExpressionValue ;
4+ import net .fabricmc .fabric .impl .client .gametest .util .ClientGameTestImpl ;
5+ import org .spongepowered .asm .mixin .Mixin ;
6+ import org .spongepowered .asm .mixin .injection .At ;
7+
8+ @ Mixin (ClientGameTestImpl .class )
9+ public class MixinClientGameTestImpl {
10+
11+ @ ModifyExpressionValue (method = "waitForWorldLoad" ,
12+ at = @ At (
13+ value = "CONSTANT" ,
14+ args = "intValue=1200" ))
15+ private static int customMaxWaitTime (final int original ) {
16+ return 20 * 600 ;
17+ }
18+ }
Original file line number Diff line number Diff line change 88 "fabric-client-gametest" : [
99 " xaeroplus.fabric.gametest.XaeroPlusClientGameTest"
1010 ]
11- }
11+ },
12+ "mixins" : [
13+ " gametest.mixins.json"
14+ ]
1215}
Original file line number Diff line number Diff line change 1+ {
2+ "required" : true ,
3+ "package" : " xaeroplus.fabric.gametest.mixin.client" ,
4+ "compatibilityLevel" : " JAVA_17" ,
5+ "minVersion" : " 0.8" ,
6+ "injectors" : {
7+ "defaultRequire" : 1
8+ },
9+ "client" : [
10+ " MixinClientGameTestImpl"
11+ ]
12+ }
You can’t perform that action at this time.
0 commit comments