Fixing lobby NPE
Dieser Commit ist enthalten in:
Ursprung
95cb544788
Commit
3786a1170a
@ -158,7 +158,7 @@ public class Subserver implements Runnable, Listener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onServerSwitchEvent(ServerConnectedEvent e){
|
public void onServerSwitchEvent(ServerConnectedEvent e){
|
||||||
ProxiedPlayer player = e.getPlayer();
|
ProxiedPlayer player = e.getPlayer();
|
||||||
if(player.getServer().getInfo().equals(server))
|
if(player.getServer() == null || player.getServer().getInfo() == null || player.getServer().getInfo().equals(server))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Iterator<ProxiedPlayer> it = cachedPlayers.iterator();
|
Iterator<ProxiedPlayer> it = cachedPlayers.iterator();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren