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 40
40
import java .util .Arrays ;
41
41
import java .util .List ;
42
42
import java .util .Set ;
43
+ import java .util .function .Predicate ;
43
44
import java .util .stream .Collectors ;
44
45
45
46
import static java .nio .file .Files .walk ;
@@ -119,7 +120,14 @@ default List<String> getMixins() {
119
120
val isDevelopmentEnvironment = (boolean ) Launch .blackboard .get ("fml.deobfuscatedEnvironment" );
120
121
val targetedMods = getTargetedModEnumValues ();
121
122
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
+ })
123
131
.collect (Collectors .toList ());
124
132
125
133
for (val mod : targetedMods ) {
You can’t perform that action at this time.
0 commit comments