Skip to content

Commit

Permalink
Another godforsaken version detection fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed May 6, 2024
1 parent 41b0105 commit 33cfbf3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ public static void fillVersionFromJar(SimpleClassPath cp, McVersion.Builder buil
}
}

entry = cp.getEntry("net/minecraft/core/Version.class");

if(entry != null) {
if(fromAnalyzer(entry.getInputStream(), new FieldStringConstantVisitor("VERSION"), builder)) {
return;
}
}


// classic: version-like String constant used in Minecraft.init, Minecraft referenced by field in MinecraftApplet
String type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public final class FabricLoaderImpl extends net.fabricmc.loader.FabricLoader {

public static final int ASM_VERSION = Opcodes.ASM9;

public static final String VERSION = "0.15.6-babric.5-bta";
public static final String VERSION = "0.15.6-babric.6-bta";
public static final String MOD_ID = "fabricloader";

public static final String CACHE_DIR_NAME = ".fabric"; // relative to game dir
Expand Down

0 comments on commit 33cfbf3

Please sign in to comment.