GH-983 use 'minecraft.jar' for ancient jar-modded versions
Fixes NEI in MC 1.4.7 and probably other obscure issues
This commit is contained in:
parent
22a0294a33
commit
29ce36c7bc
@ -144,7 +144,7 @@ BaseProcess *OneSixInstance::prepareForLaunch(AuthSessionPtr session)
|
|||||||
auto jarMods = getJarMods();
|
auto jarMods = getJarMods();
|
||||||
if (!jarMods.isEmpty())
|
if (!jarMods.isEmpty())
|
||||||
{
|
{
|
||||||
launchScript += "cp " + QDir(instanceRoot()).absoluteFilePath("temp.jar") + "\n";
|
launchScript += "cp " + QDir(instanceRoot()).absoluteFilePath("minecraft.jar") + "\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -303,7 +303,13 @@ void OneSixUpdate::jarlibFinished()
|
|||||||
{
|
{
|
||||||
strippedJar.remove();
|
strippedJar.remove();
|
||||||
}
|
}
|
||||||
auto finalJarPath = QDir(m_inst->instanceRoot()).absoluteFilePath("temp.jar");
|
auto tempJarPath = QDir(m_inst->instanceRoot()).absoluteFilePath("temp.jar");
|
||||||
|
QFile tempJar(tempJarPath);
|
||||||
|
if(tempJar.exists())
|
||||||
|
{
|
||||||
|
tempJar.remove();
|
||||||
|
}
|
||||||
|
auto finalJarPath = QDir(m_inst->instanceRoot()).absoluteFilePath("minecraft.jar");
|
||||||
QFile finalJar(finalJarPath);
|
QFile finalJar(finalJarPath);
|
||||||
if(finalJar.exists())
|
if(finalJar.exists())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user