Skip to content

Commit 706101d

Browse files
committed
Download minecraft textures
1 parent e410faf commit 706101d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/java/dev/thatredox/chunkynative/opencl/CornellBoxRenderTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package dev.thatredox.chunkynative.opencl;
22

3+
import org.junit.jupiter.api.BeforeAll;
34
import org.junit.jupiter.api.Test;
45
import se.llbit.chunky.main.Chunky;
56
import se.llbit.chunky.main.ChunkyOptions;
7+
import se.llbit.chunky.main.CommandLineOptions;
68
import se.llbit.chunky.renderer.DefaultRenderManager;
7-
import se.llbit.chunky.renderer.RenderContext;
89
import se.llbit.chunky.renderer.SceneProvider;
9-
import se.llbit.chunky.renderer.SnapshotControl;
1010
import se.llbit.chunky.renderer.scene.Scene;
1111
import se.llbit.util.TaskTracker;
1212

@@ -19,6 +19,11 @@
1919
import static org.junit.jupiter.api.Assertions.assertEquals;
2020

2121
class CornellBoxRenderTest {
22+
@BeforeAll
23+
static void download_mc() {
24+
new CommandLineOptions(new String[] { "-download-mc", "1.21.8" });
25+
}
26+
2227
@Test
2328
void render() throws IOException, InterruptedException, NoSuchFieldException, IllegalAccessException {
2429
// Initialize Chunky

0 commit comments

Comments
 (0)