Fix to issue #28 and also added a default case to tab list.

This commit is contained in:
Ranzdo 2012-11-07 05:51:32 +01:00
parent 2c1d7b34e6
commit 5ecbd4b2bc
2 changed files with 10 additions and 10 deletions

View File

@ -165,7 +165,7 @@ public class BungeeCord
switch (config.tabList)
{
case 1:
default: case 1:
tabListHandler = new GlobalPingTabList();
break;
case 2:

View File

@ -24,16 +24,16 @@ public class ServerUnqiueTabList implements TabListHandler
public void onServerChange(UserConnection con)
{
Set<String> usernames = sentUsernames.get(con);
synchronized (usernames)
if (usernames != null)
{
if (usernames != null)
{
for (String username : usernames)
{
con.packetQueue.add(new PacketC9PlayerListItem(username, false, 9999));
}
}
usernames.clear();
synchronized (usernames)
{
for (String username : usernames)
{
con.packetQueue.add(new PacketC9PlayerListItem(username, false, 9999));
}
usernames.clear();
}
}
}