File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/test/java/org/cyclops/integratedscripting/evaluate/translation Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 44import net .minecraft .nbt .*;
55import net .minecraft .network .chat .MutableComponent ;
66import net .minecraft .resources .ResourceLocation ;
7- import net .minecraft .server .Bootstrap ;
87import net .minecraft .world .item .ItemStack ;
98import net .minecraft .world .item .Items ;
109import net .minecraft .world .level .block .Blocks ;
4039public class ValueTranslatorsJavaScriptTests {
4140
4241 static {
43- Bootstrap .bootStrap ();
42+ // Override NeoForge's class loader, which is injected because JUnit is run through NeoForge's JUnitMain.
43+ // We need to do this, because otherwise Graal will fail to load.
44+ // This is not a problem at runtime.
45+ Thread .currentThread ().setContextClassLoader (ValueTranslatorsJavaScriptTests .class .getClassLoader ());
4446 }
4547
4648 private static ValueDeseralizationContext VDC = null ;
You can’t perform that action at this time.
0 commit comments