diff options
author | md_5 <git@md-5.net> | 2017-10-19 21:01:43 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-10-19 21:01:43 +1100 |
commit | b2737c28baaa0464ec6882ec4f1da33ee942f894 (patch) | |
tree | d52d3f4c50d8fb58dc0a6267704d46f9c781a8c6 /src/main/java/org/spigotmc | |
parent | f56c3840b41634d98ebfcaeb2c22e00768db9593 (diff) | |
download | buildtools-b2737c28baaa0464ec6882ec4f1da33ee942f894.tar buildtools-b2737c28baaa0464ec6882ec4f1da33ee942f894.tar.gz buildtools-b2737c28baaa0464ec6882ec4f1da33ee942f894.tar.lz buildtools-b2737c28baaa0464ec6882ec4f1da33ee942f894.tar.xz buildtools-b2737c28baaa0464ec6882ec4f1da33ee942f894.zip |
BUILDTOOLS-359: OS X filesystem cruft can break build
Diffstat (limited to 'src/main/java/org/spigotmc')
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 0469d62..f0c530e 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -355,6 +355,11 @@ public class Builder File patchDir = new File( craftBukkit, "nms-patches" ); for ( File file : patchDir.listFiles() ) { + if ( !file.getName().endsWith( ".patch" ) ) + { + continue; + } + String targetFile = "net/minecraft/server/" + file.getName().replaceAll( ".patch", ".java" ); File clean = new File( decompileDir, targetFile ); |