mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
Update to 1.17
Update to Official classnames Patchwork Make the game compile and run Merge in the new HUD overlay API Merge in the new render properties API PEEL Use Gradle 7.2 snapshot to fix eclipse integration bug in 7.1, Would use 7.0 but FG needs 7.1 for some reason. New FML installer Update to 1.17.1 Co-authored-by: LexManos <[email protected]> Co-authored-by: SizableShrimp <[email protected]> Co-authored-by: cpw <[email protected]> Co-authored-by: Curle <[email protected]> Co-authored-by: Unnoen <[email protected]> Co-authored-by: covers1624 <[email protected]> Co-authored-by: DaemonUmbra <[email protected]> Co-authored-by: gigaherz <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
This commit is contained in:
1 parent
064ae6961b
commit
be5446b91c
1990 files changed
+35661
-37544
No files matched your search
@@ -21,6 +21,7 @@ package net.minecraftforge.versions.forge;
|
||||
|
||||
import net.minecraftforge.fml.ModList;
|
||||
import net.minecraftforge.fml.VersionChecker;
|
||||
import net.minecraftforge.fml.loading.FMLLoader;
|
||||
import net.minecraftforge.fml.loading.JarVersionLookupHandler;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@@ -41,11 +42,11 @@ public class ForgeVersion
|
||||
|
||||
static {
|
||||
LOGGER.debug(CORE, "Forge Version package {} from {}", ForgeVersion.class.getPackage(), ForgeVersion.class.getClassLoader());
|
||||
String vers = JarVersionLookupHandler.getImplementationVersion(ForgeVersion.class).orElse(System.getenv("FORGE_VERSION"));
|
||||
String vers = JarVersionLookupHandler.getImplementationVersion(ForgeVersion.class).orElse(FMLLoader.versionInfo().forgeVersion());
|
||||
if (vers == null) throw new RuntimeException("Missing forge version, cannot continue");
|
||||
String spec = JarVersionLookupHandler.getSpecificationVersion(ForgeVersion.class).orElse(System.getenv("FORGE_SPEC"));
|
||||
if (spec == null) throw new RuntimeException("Missing forge spec, cannot continue");
|
||||
String group = JarVersionLookupHandler.getImplementationTitle(ForgeVersion.class).orElse(System.getenv("FORGE_GROUP"));
|
||||
String group = JarVersionLookupHandler.getImplementationTitle(ForgeVersion.class).orElse(FMLLoader.versionInfo().forgeGroup());
|
||||
if (group == null) {
|
||||
group = "net.minecraftforge"; // If all else fails, Our normal group
|
||||
}
|
||||
@@ -64,14 +65,14 @@ public class ForgeVersion
|
||||
|
||||
public static VersionChecker.Status getStatus()
|
||||
{
|
||||
return VersionChecker.getResult(ModList.get().getModFileById(MOD_ID).getMods().get(0)).status;
|
||||
return VersionChecker.getResult(ModList.get().getModFileById(MOD_ID).getMods().get(0)).status();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static String getTarget()
|
||||
{
|
||||
VersionChecker.CheckResult res = VersionChecker.getResult(ModList.get().getModFileById(MOD_ID).getMods().get(0));
|
||||
return res.target == null ? "" : res.target.toString();
|
||||
return res.target() == null ? "" : res.target().toString();
|
||||
}
|
||||
|
||||
public static String getSpec() {
|
||||
|
||||
@@ -22,6 +22,9 @@ package net.minecraftforge.versions.mcp;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import net.minecraftforge.fml.loading.FMLLoader;
|
||||
import net.minecraftforge.fml.loading.JarVersionLookupHandler;
|
||||
|
||||
import static net.minecraftforge.fml.Logging.CORE;
|
||||
|
||||
public class MCPVersion {
|
||||
@@ -29,19 +32,13 @@ public class MCPVersion {
|
||||
private static final String mcVersion;
|
||||
private static final String mcpVersion;
|
||||
static {
|
||||
String vers = MCPVersion.class.getPackage().getSpecificationVersion();
|
||||
if (vers == null) {
|
||||
vers = System.getenv("MC_VERSION");
|
||||
}
|
||||
if (vers == null) throw new RuntimeException("Missing MC version, cannot continue");
|
||||
mcVersion = vers;
|
||||
LOGGER.debug(CORE, "MCP Version package {} from {}", MCPVersion.class.getPackage(), MCPVersion.class.getClassLoader());
|
||||
mcVersion = JarVersionLookupHandler.getSpecificationVersion(MCPVersion.class).orElse(FMLLoader.versionInfo().mcVersion());
|
||||
if (mcVersion == null) throw new RuntimeException("Missing MC version, cannot continue");
|
||||
|
||||
mcpVersion = JarVersionLookupHandler.getImplementationVersion(MCPVersion.class).orElse(FMLLoader.versionInfo().mcpVersion());
|
||||
if (mcpVersion == null) throw new RuntimeException("Missing MCP version, cannot continue");
|
||||
|
||||
vers = MCPVersion.class.getPackage().getImplementationVersion();
|
||||
if (vers == null) {
|
||||
vers = System.getenv("MCP_VERSION");
|
||||
}
|
||||
if (vers == null) throw new RuntimeException("Missing MCP version, cannot continue");
|
||||
mcpVersion = vers;
|
||||
LOGGER.debug(CORE, "Found MC version information {}", mcVersion);
|
||||
LOGGER.debug(CORE, "Found MCP version information {}", mcpVersion);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user