Fix adding of raid timer multiple times in Raids
Fix adding timer multiple times when you change option while inside raids. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -320,9 +320,12 @@ public class RaidsPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (inRaidChambers && config.raidsTimer())
|
if (inRaidChambers && config.raidsTimer())
|
||||||
|
{
|
||||||
|
if (!infoBoxManager.getInfoBoxes().contains(timer))
|
||||||
{
|
{
|
||||||
infoBoxManager.addInfoBox(timer);
|
infoBoxManager.addInfoBox(timer);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
infoBoxManager.removeInfoBox(timer);
|
infoBoxManager.removeInfoBox(timer);
|
||||||
|
|||||||
Reference in New Issue
Block a user