Skip to content

Commit

Permalink
Fix custom decompiler test
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Mar 21, 2024
1 parent 658ca0c commit 4b5f62e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ package net.fabricmc.loom.test.integration.buildSrc.decompile

import java.nio.file.Path

import com.google.common.io.Files

import net.fabricmc.loom.api.decompilers.DecompilationMetadata
import net.fabricmc.loom.api.decompilers.LoomDecompiler
import net.fabricmc.loom.util.ZipUtils

class CustomDecompiler implements LoomDecompiler {
@Override
void decompile(Path compiledJar, Path sourcesDestination, Path linemapDestination, DecompilationMetadata metaData) {
println("Running custom decompiler")
Files.touch(sourcesDestination.toFile())
ZipUtils.add(sourcesDestination, "/META-INF/test.txt", "test")
}
}

0 comments on commit 4b5f62e

Please sign in to comment.