Skip to content

Commit

Permalink
adapt j21
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecdcaeb committed Nov 16, 2024
1 parent b3300f1 commit 28f6c11
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,12 @@ jar {
attribute_map['FMLAT']= project.access_transformer_locations
}
if(propertyBool('use_mixin')){
attribute_map['MixinConfigs'] = project.mixin_configs;
StringBuilder mixins = new StringBuilder();
for(String s : propertyStringList('mixin_configs').collect(config -> "mixins.${config}.json" as String)){
mixins.append(s).append(',');
}
mixins.deleteCharAt(mixins.length());
attribute_map['MixinConfigs'] = mixins.toString();
}

attributes(attribute_map)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
org.gradle.jvmargs = -Xmx3G

java_version = 21
cleanroom_version=0.2.3-alpha+
cleanroom_version=0.2.3-alpha

# Mapping Properties
mapping_channel= stable
Expand Down
1 change: 0 additions & 1 deletion runClient.bat

This file was deleted.

15 changes: 0 additions & 15 deletions setupDecomp.bat

This file was deleted.

6 changes: 3 additions & 3 deletions src/main/java/rml/jrx/utils/file/FileHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static void findFiles(ContainerHolder containerHolder, @Nullable Module m
{
try
{
fs = FileSystems.newFileSystem(source.toPath(), null);
fs = FileSystems.newFileSystem(source.toPath(), (ClassLoader) null);
root = fs.getPath("/" + base);
}
catch (IOException e)
Expand Down Expand Up @@ -122,7 +122,7 @@ public static void findFile(ContainerHolder containerHolder, Module module, Stri
{
try
{
FileSystem fs = FileSystems.newFileSystem(source.toPath(), null);
FileSystem fs = FileSystems.newFileSystem(source.toPath(), (ClassLoader) null);
Path path;
try{
path = fs.getPath("/" + base);
Expand Down Expand Up @@ -159,7 +159,7 @@ public static byte[] findFile(ModContainer containerHolder, String base) {
{
try
{
FileSystem fs = FileSystems.newFileSystem(source.toPath(), null);
FileSystem fs = FileSystems.newFileSystem(source.toPath(), (ClassLoader) null);
Path path;
byte[] toReturn;
try{
Expand Down

0 comments on commit 28f6c11

Please sign in to comment.