dev/0.11
asie 2018-12-15 22:19:50 +01:00
parent 83d6a2da42
commit 5c7c94e5fc
1 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,14 @@ public class MinecraftMappedProvider extends DependencyProvider {
@Override
public void provide(DependencyInfo dependency, Project project, LoomGradleExtension extension) throws Exception {
if (!extension.getMappingsProvider().MAPPINGS_TINY.exists()) {
throw new RuntimeException("mappings file not found");
}
if (!extension.getMinecraftProvider().jarProvider.getMergedJar().exists()) {
throw new RuntimeException("input merged jar not found");
}
if(!getMappedJar().exists() || !getIntermediaryJar().exists()){
if (getMappedJar().exists()) {
getMappedJar().delete();