From 5203e4b5bea1b8083187f0a03b40c76a7b6fa0d5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 14 Jul 2018 10:35:43 +1000 Subject: Fix spurious usage of .replaceAll --- src/main/java/org/spigotmc/builder/Builder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index bc1453b..9d96d8b 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -396,7 +396,7 @@ public class Builder continue; } - String targetFile = "net/minecraft/server/" + file.getName().replaceAll( ".patch", ".java" ); + String targetFile = "net/minecraft/server/" + file.getName().replace( ".patch", ".java" ); File clean = new File( decompileDir, targetFile ); File t = new File( nmsDir.getParentFile(), targetFile ); -- cgit v1.2.3