BCLib Syncing fixes

This commit is contained in:
Frank 2021-08-24 14:49:29 +02:00
parent 59fcaf6ee9
commit 617573ca09
3 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ public class SendFiles extends DataHandler.FromServer {
@Override
protected void serializeDataOnServer(FriendlyByteBuf buf) {
List<AutoFileSyncEntry> existingFiles = files.stream()
.filter(e -> e.fileName.exists())
.filter(e -> e!=null &&e.fileName!=null && e.fileName.exists())
.collect(Collectors.toList());
/*
//this will try to send a file that was not registered or requested by the client

View file

@ -151,7 +151,7 @@ public class ProgressScreen extends GridScreen implements ProgressListener {
@Override
public void progressStart(Component component) {
this.progressStage(component);
this.progressStagePercentage(30);
this.progressStagePercentage(0);
}
@Override