Merge pull request #1 from pm709/master

Fix NullpointerException and ClassNotFoundException exceptions
Forge-1.14.4
Szum123321 2020-01-29 18:28:52 +01:00 committed by GitHub
commit 2d0e9af3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ dependencies {
include "io.github.cottonmc:Jankson-Fabric:2.0.0+j1.2.0"
include "io.github.cottonmc.cotton:cotton-logging:1.0.0-rc.4"
include "io.github.cottonmc.cotton:cotton-config:1.0.0-rc.7"
include "org.apache.commons:commons-compress:1.8.1"
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
// You may need to force-disable transitiveness on them.

View File

@ -43,7 +43,10 @@ public class BackupHelper {
StringBuilder builder = new StringBuilder();
builder.append("Backup started by: ");
if( ctx != null )
builder.append(ctx.getName());
else
builder.append("SERVER");
builder.append(" on: ");
builder.append(getDateTimeFormatter().format(now));