mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-01 13:33:24 +01:00
Fix item filter filter item names even when disabled
This commit is contained in:
parent
d25e6c5b1e
commit
e0d7a76311
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user