diff --git a/common/implementation/base/src/main/java/com/dfsek/terra/AbstractPlatform.java b/common/implementation/base/src/main/java/com/dfsek/terra/AbstractPlatform.java index 101ca6dcb..fe04ef97e 100644 --- a/common/implementation/base/src/main/java/com/dfsek/terra/AbstractPlatform.java +++ b/common/implementation/base/src/main/java/com/dfsek/terra/AbstractPlatform.java @@ -244,12 +244,13 @@ protected void dumpResources() { String resourceYaml = IOUtils.toString(resourcesConfig, StandardCharsets.UTF_8); Map> resources = new Yaml().load(resourceYaml); resources.forEach((dir, entries) -> entries.forEach(entry -> { - String resourcePath = dir + File.separatorChar + entry; + String resourceClassPath = dir + "/" + entry; + String resourcePath = resourceClassPath.replace('/', File.separatorChar); File resource = new File(getDataFolder(), resourcePath); if(resource.exists()) return; // dont overwrite - try(InputStream is = getClass().getResourceAsStream("/" + resourcePath)) { + try(InputStream is = getClass().getResourceAsStream("/" + resourceClassPath)) { if(is == null) { logger.error("Resource {} doesn't exist on the classpath!", resourcePath); return;