Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
Don't try to parse directories if we don't have any.
Dieser Commit ist enthalten in:
Ursprung
6a37511144
Commit
77cc225b83
@ -51,8 +51,11 @@ public class ConsoleLogManager {
|
|||||||
|
|
||||||
// We only care about parsing for directories, FileHandler can do file names by itself
|
// We only care about parsing for directories, FileHandler can do file names by itself
|
||||||
File parent = new File(pattern).getParentFile();
|
File parent = new File(pattern).getParentFile();
|
||||||
String parentPath = parent.getPath();
|
|
||||||
StringBuilder fixedPattern = new StringBuilder();
|
StringBuilder fixedPattern = new StringBuilder();
|
||||||
|
String parentPath = "";
|
||||||
|
if (parent != null) {
|
||||||
|
parentPath = parent.getPath();
|
||||||
|
}
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < parentPath.length()) {
|
while (i < parentPath.length()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren