Make mcInstance mutable
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
e26827b849
commit
3c87e5d31e
@ -40,7 +40,7 @@ ModrinthPackExportTask::ModrinthPackExportTask(const QString& name,
|
|||||||
, version(version)
|
, version(version)
|
||||||
, summary(summary)
|
, summary(summary)
|
||||||
, instance(instance)
|
, instance(instance)
|
||||||
, mcInstance(dynamic_cast<const MinecraftInstance*>(instance.get()))
|
, mcInstance(dynamic_cast<MinecraftInstance*>(instance.get()))
|
||||||
, gameRoot(instance->gameRoot())
|
, gameRoot(instance->gameRoot())
|
||||||
, output(output)
|
, output(output)
|
||||||
, filter(filter)
|
, filter(filter)
|
||||||
|
@ -51,7 +51,7 @@ class ModrinthPackExportTask : public Task {
|
|||||||
// inputs
|
// inputs
|
||||||
const QString name, version, summary;
|
const QString name, version, summary;
|
||||||
const InstancePtr instance;
|
const InstancePtr instance;
|
||||||
const MinecraftInstance* mcInstance;
|
MinecraftInstance* mcInstance;
|
||||||
const QDir gameRoot;
|
const QDir gameRoot;
|
||||||
const QString output;
|
const QString output;
|
||||||
const MMCZip::FilterFunction filter;
|
const MMCZip::FilterFunction filter;
|
||||||
|
Loading…
Reference in New Issue
Block a user