Fixed if-else statement

This commit is contained in:
Swirny 2020-05-25 18:54:07 +02:00 committed by Mike
parent b638e04737
commit d2d3dcc78c

View File

@ -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);