From d2d3dcc78c1e6ac95a349b3d06ea61faebf90642 Mon Sep 17 00:00:00 2001 From: Swirny Date: Mon, 25 May 2020 18:54:07 +0200 Subject: [PATCH] Fixed if-else statement --- src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java | 5 ++--- 1 file changed, 2 insertions(+), 3 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 3edea69f..cf536f93 100644 --- a/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java +++ b/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java @@ -608,8 +608,7 @@ public class HabboStats implements Runnable { if (!Emulator.getConfig().getBoolean("hotel.ignore.staffs")) { if (target.getHabboInfo().getRank().getId() >= gameClient.getHabbo().getHabboInfo().getRank().getId()) { gameClient.getHabbo().whisper(Emulator.getTexts().getValue("generic.error.higher_rank"), RoomChatMessageBubbles.ALERT); - } else { - if (!this.userIgnored(userId)) { + } else if (!this.userIgnored(userId)) { this.ignoredUsers.add(userId); try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); @@ -622,7 +621,7 @@ public class HabboStats implements Runnable { } } } - } + else if (!this.userIgnored(userId)) { this.ignoredUsers.add(userId);