Fix typo "officalMojangMappings" (#420)

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel 2021-06-20 20:24:10 +08:00 committed by GitHub
parent 147af48879
commit 54d6ef7896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -117,7 +117,7 @@ public class LoomGradleExtension {
}
public Dependency officialMojangMappings() {
return layered(LayeredMappingSpecBuilder::officalMojangMappings);
return layered(LayeredMappingSpecBuilder::officialMojangMappings);
}
public Dependency layered(Action<LayeredMappingSpecBuilder> action) {

View file

@ -37,7 +37,7 @@ import net.fabricmc.loom.configuration.providers.mappings.parchment.ParchmentMap
public class LayeredMappingSpecBuilder {
private final List<MappingsSpec<?>> layers = new LinkedList<>();
public LayeredMappingSpecBuilder officalMojangMappings() {
public LayeredMappingSpecBuilder officialMojangMappings() {
layers.add(new MojangMappingsSpec());
return this;
}

View file

@ -124,7 +124,7 @@ public class MigrateMappingsTask extends AbstractLoomTask {
throw new UnsupportedOperationException("Migrating Mojang mappings is currently only supported for the specified minecraft version");
}
LayeredMappingsDependency dep = (LayeredMappingsDependency) getExtension().layered(LayeredMappingSpecBuilder::officalMojangMappings);
LayeredMappingsDependency dep = (LayeredMappingsDependency) getExtension().layered(LayeredMappingSpecBuilder::officialMojangMappings);
files = dep.resolve();
} else {
Dependency dependency = project.getDependencies().create(mappings);

View file

@ -37,7 +37,7 @@ class LayeredMappingSpecBuilderTest extends Specification {
def "simple mojmap" () {
when:
def spec = layered() {
officalMojangMappings()
officialMojangMappings()
}
def layers = spec.layers()
then:
@ -50,7 +50,7 @@ class LayeredMappingSpecBuilderTest extends Specification {
def "simple mojmap with parchment" () {
when:
def spec = layered() {
officalMojangMappings()
officialMojangMappings()
parchment("I like cake")
}
def layers = spec.layers()
@ -68,7 +68,7 @@ class LayeredMappingSpecBuilderTest extends Specification {
def "simple mojmap with parchment keep prefix" () {
when:
def spec = layered() {
officalMojangMappings()
officialMojangMappings()
parchment("I like cake") {
it.removePrefix = false
}
@ -88,7 +88,7 @@ class LayeredMappingSpecBuilderTest extends Specification {
def "simple mojmap with parchment keep prefix alternate hash" () {
when:
def spec = layered() {
officalMojangMappings()
officialMojangMappings()
parchment("I really like cake") {
it.removePrefix = false
}