Always remap jar when using local mappings.
parent
673f21c506
commit
d4792dd0af
|
@ -48,7 +48,11 @@ public class MapJarsTask extends DefaultTask {
|
||||||
@TaskAction
|
@TaskAction
|
||||||
public void mapJars() throws IOException, MappingParseException {
|
public void mapJars() throws IOException, MappingParseException {
|
||||||
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
|
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
|
||||||
if (!Constants.MINECRAFT_MAPPED_JAR.get(extension).exists()) {
|
if (!Constants.MINECRAFT_MAPPED_JAR.get(extension).exists() || extension.localMappings) {
|
||||||
|
if(extension.localMappings && Constants.MINECRAFT_MAPPED_JAR.get(extension).exists()){
|
||||||
|
//Always remap the jar when using local mappings.
|
||||||
|
Constants.MINECRAFT_MAPPED_JAR.get(extension).delete();
|
||||||
|
}
|
||||||
if(!extension.hasPomf()){
|
if(!extension.hasPomf()){
|
||||||
this.getLogger().lifecycle("POMF version not set, skipping mapping!");
|
this.getLogger().lifecycle("POMF version not set, skipping mapping!");
|
||||||
FileUtils.copyFile(Constants.MINECRAFT_MERGED_JAR.get(extension), Constants.MINECRAFT_MAPPED_JAR.get(extension));
|
FileUtils.copyFile(Constants.MINECRAFT_MERGED_JAR.get(extension), Constants.MINECRAFT_MAPPED_JAR.get(extension));
|
||||||
|
|
Loading…
Reference in New Issue