Skip to content

Commit

Permalink
Update 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox2Code committed Mar 19, 2023
1 parent fbc2ac5 commit 767bb1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class ModLoader {
static Thread gameThread;
public static final String FOX_LOADER_HEADER = "\0RFL";
public static final int MAX_MOD_ID_LENGTH = 32;
private static final Manifest nullManifest = new Manifest();
private static final Attributes.Name MOD_ID = new Attributes.Name("ModId");
private static final Attributes.Name MOD_NAME = new Attributes.Name("ModName");
private static final Attributes.Name MOD_VERSION = new Attributes.Name("ModVersion");
Expand Down Expand Up @@ -151,6 +152,9 @@ private static void loadModContainerFrom(File file, boolean injected) {
ioe.printStackTrace();
return;
}
if (manifest == null) {
manifest = nullManifest;
}
Attributes attributes = manifest.getMainAttributes();
String id = attributes.getValue(MOD_ID);
String name = attributes.getValue(MOD_NAME);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.parallel=true
org.gradle.jvmargs=-Xmx1024m -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8

# FoxLoader properties
foxloader.version=0.2.1
foxloader.version=0.2.2
foxloader.lastReIndevTransformerChanges=0.2.0

# ReIndev properties
Expand Down

0 comments on commit 767bb1c

Please sign in to comment.