Properly fixed missing htmls command.

This commit is contained in:
MobiusDev
2017-08-03 11:39:32 +00:00
parent df8b06406d
commit 6883944c05
6 changed files with 6 additions and 78 deletions

View File

@@ -180,30 +180,6 @@ public class HtmCache
return (path == null) || path.isEmpty() ? "" : _cache.get(path) == null ? loadFile(new File(Config.DATAPACK_ROOT, path)) : _cache.get(path);
}
/**
* Used by admin_geomap_missing_htmls
* @param search String
* @return if html name exists
*/
public boolean htmlNameExists(String search)
{
for (String s : _cache.keySet())
{
if (s.contains(search) && (!s.contains("quest")))
{
return true;
}
}
for (String s : _cache.values())
{
if (s.contains(search) && (!s.contains("quest")))
{
return true;
}
}
return false;
}
public boolean contains(String path)
{
return _cache.containsKey(path);