Fix ObfuscationService when using local mappings.

dev/0.11
modmuss50 2017-05-12 13:16:39 +01:00
parent 2c47c29df9
commit 9018e10b7f
No known key found for this signature in database
GPG Key ID: 203A5ED4D3E48BEA
1 changed files with 1 additions and 2 deletions

View File

@ -79,9 +79,8 @@ public class DownloadTask extends DefaultTask {
if(!extension.hasPomf()){ if(!extension.hasPomf()){
if(Constants.MAPPINGS_DIR_LOCAL.get(extension).exists()){ if(Constants.MAPPINGS_DIR_LOCAL.get(extension).exists()){
if(Constants.MAPPINGS_TINY_GZ_LOCAL.get(extension).exists() && Constants.MAPPINGS_ZIP_LOCAL.get(extension).exists()){ if(Constants.MAPPINGS_TINY_GZ_LOCAL.get(extension).exists() && Constants.MAPPINGS_ZIP_LOCAL.get(extension).exists()){
this.getLogger().lifecycle("Found local mapping files"); this.getLogger().lifecycle(":using local mappings!");
extension.localMappings = true; extension.localMappings = true;
extension.pomfVersion = "local"; //TODO set this to include the hash or something to so the jar name is unique?
//We delete this to make sure they are always re extracted. //We delete this to make sure they are always re extracted.
deleteIfExists(Constants.MAPPINGS_ZIP.get(extension)); deleteIfExists(Constants.MAPPINGS_ZIP.get(extension));