File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/main/java/com/falsepattern/lib/mixin Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 4040import java .util .Arrays ;
4141import java .util .List ;
4242import java .util .Set ;
43+ import java .util .function .Predicate ;
4344import java .util .stream .Collectors ;
4445
4546import static java .nio .file .Files .walk ;
@@ -119,7 +120,14 @@ default List<String> getMixins() {
119120 val isDevelopmentEnvironment = (boolean ) Launch .blackboard .get ("fml.deobfuscatedEnvironment" );
120121 val targetedMods = getTargetedModEnumValues ();
121122 val loadedMods = Arrays .stream (targetedMods )
122- .filter (mod -> (mod .isLoadInDevelopment () && isDevelopmentEnvironment ) || loadJarOf (mod ))
123+ //Java 21 compat
124+ .filter (new Predicate <ITargetedMod >() {
125+ @ Override
126+ public boolean test (ITargetedMod mod ) {
127+ return (mod .isLoadInDevelopment () && isDevelopmentEnvironment )
128+ || IMixinPlugin .this .loadJarOf (mod );
129+ }
130+ })
123131 .collect (Collectors .toList ());
124132
125133 for (val mod : targetedMods ) {
You can’t perform that action at this time.
0 commit comments