Fixed tiles not being loaded from tilespath.

This commit is contained in:
FrozenCow 2012-01-14 03:51:36 +01:00
parent 502fbd5829
commit 22850982a9

View File

@ -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()));
}}); }});
}}; }};