Fix the chat pref targetting the wrong player

This commit is contained in:
Sam 2018-09-02 13:07:37 +01:00 committed by Alexander Meech
parent e059dc6818
commit ca22992034

View File

@ -821,7 +821,7 @@ public class Chat extends MiniPlugin
if (channel.isModerated())
{
event.getRecipients().removeIf(player -> !preferences.isActive(Preference.SHOW_CHAT));
event.getRecipients().removeIf(recipient -> !_preferencesManager.get(recipient).isActive(Preference.SHOW_CHAT));
}
if (customEvent.isFiltered())