From b2737c28baaa0464ec6882ec4f1da33ee942f894 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 19 Oct 2017 21:01:43 +1100 Subject: BUILDTOOLS-359: OS X filesystem cruft can break build --- src/main/java/org/spigotmc/builder/Builder.java | 5 +++++ 1 file changed, 5 insertions(+) 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 ); -- cgit v1.2.3