HammerLib

HammerLib

37M Downloads

1.12.2 stuck at startup - Constructing Mods 1/7 - Construction HammerLib

Tree4Free opened this issue ยท 0 comments

commented

In a blank 1.12.2 instance with only Forge & HammerLib the instance hangs at startup.

I am on Windows 10 and used Prism Launcher 8.3 if that makes a difference.

image

I cloned the source code and started a debugger to investigate this and it seems like the cause of the issue is the com.zeitheron.hammercore.utils.java.io.win32.ZoneIdentifier#readADS method.

In there the mod hangs at the process.waitFor(); line:

Process process = Runtime.getRuntime().exec(new String[] {
    "cmd.exe",
    "/c",
    "more",
    "<",
    toParse.toFile() + ":" + ads
});			

process.waitFor(); // <-- Here

I was able to start the minecraft instance after changing the code in com.zeitheron.hammercore.utils.CommonMessages#printMessageOnIllegalRedistribution
from

ModSourceAdapter.ModSource illegalSourceNotice = ModSourceAdapter.getModSource(modClass)
    .filter(ModSourceAdapter.ModSource::wasDownloadedIllegally)
    .orElse(null);

to

ModSourceAdapter.ModSource illegalSourceNotice = null;