Fixed guilds not being removed from the GuildObject when disbanding

This commit is contained in:
Waverunner
2014-07-27 12:59:05 -04:00
parent ad1e996fbb
commit 88627d65a3
+8 -2
View File
@@ -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;
}