@@ -477,6 +477,7 @@ class LootTrackerPanel extends PluginPanel
|
|||||||
{
|
{
|
||||||
for (LootTrackerRecord r : records)
|
for (LootTrackerRecord r : records)
|
||||||
{
|
{
|
||||||
|
if (plugin.isIgnoredNPC(r.getTitle()))
|
||||||
for (LootTrackerItem item : r.getItems())
|
for (LootTrackerItem item : r.getItems())
|
||||||
{
|
{
|
||||||
if (plugin.isIgnored(item.getName()) != item.isIgnored())
|
if (plugin.isIgnored(item.getName()) != item.isIgnored())
|
||||||
|
|||||||
@@ -804,10 +804,12 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
if (ignore)
|
if (ignore)
|
||||||
{
|
{
|
||||||
ignoredNPCSet.add(name);
|
ignoredNPCSet.add(name);
|
||||||
|
ignoredNPCs.add(name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ignoredNPCSet.remove(name);
|
ignoredNPCSet.remove(name);
|
||||||
|
ignoredNPCs.remove(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
config.setIgnoredNPCs(Text.toCSV(ignoredNPCSet));
|
config.setIgnoredNPCs(Text.toCSV(ignoredNPCSet));
|
||||||
@@ -821,6 +823,7 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
*/
|
*/
|
||||||
public boolean isIgnoredNPC(String name)
|
public boolean isIgnoredNPC(String name)
|
||||||
{
|
{
|
||||||
|
log.info(ignoredNPCs.toString());
|
||||||
return ignoredNPCs.contains(name);
|
return ignoredNPCs.contains(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user