From 2b758d929a2360a12af83b5a0e755d887b7584e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sun, 10 Jan 2021 12:13:23 +0100 Subject: [PATCH] Fixed ResourceFileSystem in standalone. Closes #6. --- src/main/java/li/cil/oc2/common/vm/fs/ResourceFileSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/li/cil/oc2/common/vm/fs/ResourceFileSystem.java b/src/main/java/li/cil/oc2/common/vm/fs/ResourceFileSystem.java index e99a317f..a6511eb7 100644 --- a/src/main/java/li/cil/oc2/common/vm/fs/ResourceFileSystem.java +++ b/src/main/java/li/cil/oc2/common/vm/fs/ResourceFileSystem.java @@ -38,7 +38,7 @@ public final class ResourceFileSystem implements FileSystem { final String path = location.getPath(); assert path.startsWith(rootLocationPath); final String localPath = path.substring(rootLocationPath.length()); - if (localPath.isEmpty()) { + if (localPath.isEmpty() || "/".equals(localPath)) { continue; // Skip the directory we're using as root. }