From 8b7392ed642f3276221a664c5ee5f498550cb30b Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 2 Nov 2014 00:54:41 +0100 Subject: [PATCH] Nochmal Bugfix zum Loader. --- .../teamteamteam/spacescooter/utility/CodeEnvironment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/de/teamteamteam/spacescooter/utility/CodeEnvironment.java b/src/de/teamteamteam/spacescooter/utility/CodeEnvironment.java index 6ed2eb8..d03effb 100644 --- a/src/de/teamteamteam/spacescooter/utility/CodeEnvironment.java +++ b/src/de/teamteamteam/spacescooter/utility/CodeEnvironment.java @@ -48,7 +48,11 @@ public class CodeEnvironment { if(f.isDirectory()) { String[] filesInDirectory = CodeEnvironment.getFileListFromFolder(f); for(String entry : filesInDirectory) { - fileList.add(entry.replace(rootPath, "")); + if(entry.contains(rootPath)) { + fileList.add(entry.substring(rootPath.length())); + } else { + fileList.add(entry); + } } } else { fileList.add(f.toString());