mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
Fixed absolute paths in manual.
This commit is contained in:
parent
060f3bb5d8
commit
87d25abcb2
@ -40,7 +40,7 @@ public class ResourceContentProvider implements ContentProvider {
|
||||
|
||||
@Override
|
||||
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;
|
||||
try {
|
||||
is = Minecraft.getMinecraft().getResourceManager().getResource(location).getInputStream();
|
||||
|
Loading…
x
Reference in New Issue
Block a user