Lotsa cleanup

This commit is contained in:
Vasco Lavos committed 2015-12-05 21:10:07 +00:00
1 parent 4610f1e617
commit c904244bcc
102 files changed
+1282 -1351

No files matched your search

@@ -29,14 +29,14 @@ public class SimpleWikiProvider implements IWikiProvider {
public SimpleWikiProvider(String name, String urlBase, boolean lowercase) {
this(name, urlBase, "%20", lowercase);
}
public SimpleWikiProvider(String name, String urlBase, String replacement) {
this.name = name;
this.urlBase = urlBase;
this.replacement = replacement;
this.lowercase = false;
lowercase = false;
}
public SimpleWikiProvider(String name, String urlBase, String replacement, boolean lowercase) {
this.name = name;
this.urlBase = urlBase;
@@ -74,7 +74,7 @@ public class SimpleWikiProvider implements IWikiProvider {
String name = getBlockName(world, pos);
if(name == null)
return null;
if(lowercase) {
return String.format(urlBase, name.toLowerCase().replaceAll(" ", replacement));
} else {