Fixed tiles not being loaded from tilespath.
This commit is contained in:
parent
625ff8a271
commit
94f466665d
1 changed files with 2 additions and 2 deletions
|
|
@ -431,11 +431,11 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||||
this.setDirectoriesListed(true);
|
this.setDirectoriesListed(true);
|
||||||
this.setBaseResource(createFileResource(getFile(getWebPath()).getAbsolutePath()));
|
this.setBaseResource(createFileResource(getFile(getWebPath()).getAbsolutePath()));
|
||||||
}});
|
}});
|
||||||
this.addHandler("/tiles/", new ResourceHandler() {{
|
this.addHandler("/tiles/*", new ResourceHandler() {{
|
||||||
this.setAliases(allow_symlinks);
|
this.setAliases(allow_symlinks);
|
||||||
this.setWelcomeFiles(new String[] { });
|
this.setWelcomeFiles(new String[] { });
|
||||||
this.setDirectoriesListed(true);
|
this.setDirectoriesListed(true);
|
||||||
this.setBaseResource(createFileResource(tilesDirectory.toString()));
|
this.setBaseResource(createFileResource(tilesDirectory.getAbsolutePath()));
|
||||||
}});
|
}});
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue