mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-28 13:05:14 +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()
|
||||
{
|
||||
if(!isItemFilterEnabledNoShulker()) return new HashSet<>();
|
||||
Set<String> names = new HashSet<>();
|
||||
getConfigE().getStringList("ItemFilter.Names", new LinkedList<>()).forEach(name -> names.add(ChatColor.translateAlternateColorCodes('&', name)));
|
||||
return names;
|
||||
|
Loading…
Reference in New Issue
Block a user