mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-14 04:13:14 -04:00
Fixed guilds not being removed from the GuildObject when disbanding
This commit is contained in:
@@ -1124,8 +1124,14 @@ public class GuildService implements INetworkDispatch {
|
||||
public boolean removeGuild(int id) {
|
||||
Guild guild = getGuildById(id);
|
||||
|
||||
if (guild != null)
|
||||
return true;
|
||||
if (guild != null) {
|
||||
if (object.getGuildList().remove(guild.getString())) {
|
||||
object.getGuilds().remove(id);
|
||||
if (object.getGuilds().containsKey(id)) return true;
|
||||
else return false;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user