diff --git a/mch/src/main/java/ca/bkaw/mch/world/sftp/SftpWorldProvider.java b/mch/src/main/java/ca/bkaw/mch/world/sftp/SftpWorldProvider.java index 9a19eab..ac03647 100644 --- a/mch/src/main/java/ca/bkaw/mch/world/sftp/SftpWorldProvider.java +++ b/mch/src/main/java/ca/bkaw/mch/world/sftp/SftpWorldProvider.java @@ -66,6 +66,10 @@ private String getDimensionPath(String dimension) { public List getRegionFiles(String dimension) throws IOException { String path = this.getDimensionPath(dimension) + "/region"; + if (this.sftp.statExistence(path) == null) { + return List.of(); + } + return this.sftp.ls(path, file -> file.getName().startsWith("r.") && file.getName().endsWith(".mca") )