From 010ebacd1af137305e6e5a4bfa4cf25ada3cb06f Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Tue, 18 May 2021 09:43:14 +0000 Subject: [PATCH] Fix mount suggestion always being printed out --- .../dan200/computercraft/core/filesystem/ResourceMount.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dan200/computercraft/core/filesystem/ResourceMount.java b/src/main/java/dan200/computercraft/core/filesystem/ResourceMount.java index 5e9e4a067..1ae391738 100644 --- a/src/main/java/dan200/computercraft/core/filesystem/ResourceMount.java +++ b/src/main/java/dan200/computercraft/core/filesystem/ResourceMount.java @@ -108,8 +108,8 @@ public final class ResourceMount implements IMount { if( !hasAny ) { - ComputerCraft.log.warn("Cannot find any files under /data/{}/{} for resource mount.", namespace, subPath); - if( newRoot != null ) + ComputerCraft.log.warn( "Cannot find any files under /data/{}/{} for resource mount.", namespace, subPath ); + if( existingNamespace != null ) { ComputerCraft.log.warn("There are files under /data/{}/{} though. Did you get the wrong namespace?", existingNamespace, subPath); }