Fix typo "officalMojangMappings" (#420)
Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
parent
147af48879
commit
54d6ef7896
4 changed files with 7 additions and 7 deletions
|
@ -117,7 +117,7 @@ public class LoomGradleExtension {
|
|||
}
|
||||
|
||||
public Dependency officialMojangMappings() {
|
||||
return layered(LayeredMappingSpecBuilder::officalMojangMappings);
|
||||
return layered(LayeredMappingSpecBuilder::officialMojangMappings);
|
||||
}
|
||||
|
||||
public Dependency layered(Action<LayeredMappingSpecBuilder> action) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue