File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/gametest/java/net/caffeinemc/mods/lithium/neoforge/test Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,15 @@ neoForge {
99
99
100
100
sourceSet = sourceSets.getByName(" gametest" )
101
101
systemProperty(" neoforge.enabledGameTestNamespaces" , " lithium-gametest" )
102
- environment(" LITHIUM_GAMETEST_RESOURCES" , file(" src/gametest/resources" ).path)
102
+ environment(" LITHIUM_GAMETEST_RESOURCES" , file(" ../../../common/ src/gametest/resources/data/lithium-gametest/gametest/structure " ).path)
103
103
}
104
104
create(" gametestServer" ) {
105
105
type = " gameTestServer"
106
106
gameDirectory.set(file(" runs/gametestServer" ))
107
107
108
108
sourceSet = sourceSets.getByName(" gametest" )
109
109
systemProperty(" neoforge.enabledGameTestNamespaces" , " lithium-gametest" )
110
- environment(" LITHIUM_GAMETEST_RESOURCES" , file(" src/gametest/resources" ).path)
110
+ environment(" LITHIUM_GAMETEST_RESOURCES" , file(" ../../../common/ src/gametest/resources/data/lithium-gametest/gametest/structure " ).path)
111
111
}
112
112
}
113
113
Original file line number Diff line number Diff line change 24
24
@ GameTestHolder ("lithium-gametest" )
25
25
public class LithiumNeoforgeGameTest {
26
26
27
- //Not very nice to do this but it works
28
- public static final String LITHIUM_GAMETEST_SNBT_PATH = "../../../common/src/gametest/resources/data/lithium-gametest/gametest/structure" ;
27
+ public static final String LITHIUM_GAMETEST_SNBT_PATH = System .getenv ("LITHIUM_GAMETEST_RESOURCES" );
29
28
30
29
//Some tests are excluded because Neoforge is breaking them, not lithium.
31
30
//test_redstone.lava_push_speed broken by https://github.com/neoforged/NeoForge/issues/1575
@@ -113,6 +112,10 @@ private static Optional<BlockPos> checkFailureBlocks(GameTestHelper gameTestHelp
113
112
114
113
@ GameTestGenerator
115
114
public Collection <TestFunction > getAllRedstoneTests () {
115
+ if (LITHIUM_GAMETEST_SNBT_PATH == null ) {
116
+ return List .of ();
117
+ }
118
+
116
119
List <String > structureNames = null ;
117
120
try {
118
121
structureNames = getLithiumSNBTFilenames ();
You can’t perform that action at this time.
0 commit comments