mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -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
|
@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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user