Added config for stripping un-owned clothes clothing.strip_unowned

This commit is contained in:
Beny 2019-05-19 21:43:11 +01:00
parent f26c9f527f
commit 2bada071ed

View File

@ -221,7 +221,7 @@ public class HabboInfo implements Runnable
}
public void setLook(String look, boolean stripForbidden) {
if (stripForbidden) {
if (stripForbidden && Emulator.getConfig().getBoolean("clothing.strip_unowned", false)) {
Habbo habbo = Emulator.getGameEnvironment().getHabboManager().getHabbo(this.id);
if (habbo != null) look = FigureUtil.stripBlacklistedClothing(look, habbo.getForbiddenClothing());