Commits

md_5 authored 5203e4b5bea
Fix spurious usage of .replaceAll
No tags

src/main/java/org/spigotmc/builder/Builder.java

Modified
389 389 FileUtils.moveDirectory( nmsDir, new File( workDir, "nms.old." + System.currentTimeMillis() ) );
390 390 }
391 391 File patchDir = new File( craftBukkit, "nms-patches" );
392 392 for ( File file : patchDir.listFiles() )
393 393 {
394 394 if ( !file.getName().endsWith( ".patch" ) )
395 395 {
396 396 continue;
397 397 }
398 398
399 - String targetFile = "net/minecraft/server/" + file.getName().replaceAll( ".patch", ".java" );
399 + String targetFile = "net/minecraft/server/" + file.getName().replace( ".patch", ".java" );
400 400
401 401 File clean = new File( decompileDir, targetFile );
402 402 File t = new File( nmsDir.getParentFile(), targetFile );
403 403 t.getParentFile().mkdirs();
404 404
405 405 System.out.println( "Patching with " + file.getName() );
406 406
407 407 List<String> readFile = Files.readLines( file, Charsets.UTF_8 );
408 408
409 409 // Manually append prelude if it is not found in the first few lines.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut