Remove disbanded communities from the browser

This commit is contained in:
Dan Mulloy 2018-06-14 21:04:44 -04:00 committed by Alexander Meech
parent 42e68d0d7f
commit 66bfcc9d9b
3 changed files with 2 additions and 4 deletions

View File

@ -619,6 +619,7 @@ public class CommunityManager extends MiniDbClientPlugin<CommunityMemberData>
public void handleCommunityDisband(Integer id, String senderName)
{
_browserCommunities.remove(id);
Community community = _loadedCommunities.get(id);
if (community == null)
{

View File

@ -16,7 +16,6 @@ public class CommunityBrowserButton extends CommunitiesGUIButton
private ICommunity _community;
private Player _viewer;
@SuppressWarnings("deprecation")
public CommunityBrowserButton(Player viewer, ICommunity community)
{
super(createButton(community));

View File

@ -24,7 +24,6 @@ public class CommunityBrowserPage extends CommunitiesGUIPage
private int _page = 1;
private boolean _loading = false;
private boolean _update = false;
private List<Integer> _displaying = new ArrayList<>();
@ -40,7 +39,6 @@ public class CommunityBrowserPage extends CommunitiesGUIPage
{
if (_loading)
{
_update = true;
return;
}