Minor Link bypass improvements.

This commit is contained in:
MobiusDevelopment
2019-04-12 06:57:00 +00:00
parent a96e5e99f3
commit 4ba7bc7721
12 changed files with 78 additions and 24 deletions

View File

@@ -31,7 +31,7 @@ public class Link implements IBypassHandler
"Link"
};
private static final String[] VALID_BYPASSES =
private static final String[] VALID_LINKS =
{
"common/attribute_info.htm",
"common/augmentation_01.htm",
@@ -109,7 +109,7 @@ public class Link implements IBypassHandler
return false;
}
String content = CommonUtil.contains(VALID_BYPASSES, htmlPath) ? HtmCache.getInstance().getHtm(player, "data/html/" + htmlPath) : null;
String content = CommonUtil.contains(VALID_LINKS, htmlPath) ? HtmCache.getInstance().getHtm(player, "data/html/" + htmlPath) : null;
// Precaution.
if (htmlPath.startsWith("teleporter/") && !(player.getTarget() instanceof TeleporterInstance))
{