Fix item filter filter item names even when disabled

This commit is contained in:
GeorgH93 2020-02-13 23:14:22 +01:00
parent d25e6c5b1e
commit e0d7a76311
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -306,6 +306,7 @@ public Collection<MinecraftMaterial> getItemFilterMaterials()
public Set<String> getItemFilterNames() public Set<String> getItemFilterNames()
{ {
if(!isItemFilterEnabledNoShulker()) return new HashSet<>();
Set<String> names = new HashSet<>(); Set<String> names = new HashSet<>();
getConfigE().getStringList("ItemFilter.Names", new LinkedList<>()).forEach(name -> names.add(ChatColor.translateAlternateColorCodes('&', name))); getConfigE().getStringList("ItemFilter.Names", new LinkedList<>()).forEach(name -> names.add(ChatColor.translateAlternateColorCodes('&', name)));
return names; return names;