Class requirements refactored to enumset.

This commit is contained in:
2024-02-08 13:11:37 -05:00
parent d487a9d1ab
commit b3b6a9a913
8 changed files with 103 additions and 66 deletions
@@ -84,9 +84,9 @@ public class InviteToGuildHandler extends AbstractClientMsgHandler {
return true;
}
Enum.GuildType guildType = Enum.GuildType.values()[sourcePlayer.getGuild().getCharter()];
Enum.GuildCharterType guildCharterType = Enum.GuildCharterType.values()[sourcePlayer.getGuild().getCharter()];
if (guildType == null) {
if (guildCharterType == null) {
ErrorPopupMsg.sendErrorPopup(sourcePlayer, GuildManager.NO_CHARTER_FOUND);
return true;
}