Fixed absolute paths in manual.

This commit is contained in:
Florian Nücke 2015-04-18 16:35:13 +02:00
parent 060f3bb5d8
commit 87d25abcb2

View File

@ -40,7 +40,7 @@ public class ResourceContentProvider implements ContentProvider {
@Override @Override
public Iterable<String> getContent(String path) { public Iterable<String> getContent(String path) {
final ResourceLocation location = new ResourceLocation(resourceDomain, basePath + path); final ResourceLocation location = new ResourceLocation(resourceDomain, basePath + (path.startsWith("/") ? path.substring(1) : path));
InputStream is = null; InputStream is = null;
try { try {
is = Minecraft.getMinecraft().getResourceManager().getResource(location).getInputStream(); is = Minecraft.getMinecraft().getResourceManager().getResource(location).getInputStream();