MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / foreach

Function foreach

launcher/modplatform/legacy_ftb/PackInstallTask.cpp:190–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188 QJsonArray libs = doc.object().value("libraries").toArray();
189
190 foreach (const QJsonValue &value, libs)
191 {
192 QString nameValue = value.toObject().value("name").toString();
193 if(!nameValue.startsWith("net.minecraftforge"))
194 {
195 continue;
196 }
197
198 GradleSpecifier forgeVersion(nameValue);
199
200 components->setComponentVersion("net.minecraftforge", forgeVersion.version().replace(m_pack.mcVersion, "").replace("-", ""));
201 packJson.remove();
202 fallback = false;
203 break;
204 }
205
206 }
207

Callers

nothing calls this directly

Calls 5

setComponentVersionMethod · 0.80
toStringMethod · 0.45
replaceMethod · 0.45
versionMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected