CoxHelper: Fixes vanguards infobox (#2121)

* Fixes vanguards infobox
This commit is contained in:
Dozer
2019-12-13 04:45:50 -06:00
committed by Kyle
parent 1a40da7900
commit 2f3b495c8f

View File

@@ -75,19 +75,9 @@ public class CoxInfoBox extends Overlay
{ {
prayAgainstPanel.getChildren().clear(); prayAgainstPanel.getChildren().clear();
if (!plugin.isConfigPrayAgainstOlm())
{
return null;
}
final PrayAgainst prayAgainst = plugin.getPrayAgainstOlm(); final PrayAgainst prayAgainst = plugin.getPrayAgainstOlm();
if (prayAgainst == null) if (System.currentTimeMillis() < plugin.getLastPrayTime() + 120000 && prayAgainst != null && plugin.isConfigPrayAgainstOlm())
{
return null;
}
if (System.currentTimeMillis() < plugin.getLastPrayTime() + 120000)
{ {
final int scale = plugin.getPrayAgainstSize(); final int scale = plugin.getPrayAgainstSize();
InfoBoxComponent prayComponent = new InfoBoxComponent(); InfoBoxComponent prayComponent = new InfoBoxComponent();