From 16f0a61932d6ec420227ffcb66b935b942583688 Mon Sep 17 00:00:00 2001 From: brenoepic <59066707+brenoepics@users.noreply.github.com> Date: Fri, 29 Apr 2022 18:31:27 -0300 Subject: [PATCH] make hasGuild one line --- .../java/com/eu/habbo/habbohotel/users/HabboStats.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java b/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java index 855d4972..705ae190 100644 --- a/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java +++ b/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java @@ -421,12 +421,7 @@ public class HabboStats implements Runnable { } public boolean hasGuild(int guildId) { - for (int i : this.guilds) { - if (i == guildId) - return true; - } - - return false; + return this.guilds.contains(guildId); } public int getAchievementScore() {