3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-25 15:50:10 +01:00

Don't handle null users

Dieser Commit ist enthalten in:
Myles 2016-11-15 17:01:22 +00:00
Ursprung 9186361a29
Commit 744252d492

Datei anzeigen

@ -49,6 +49,7 @@ public class BungeeServerHandler implements Listener {
@EventHandler @EventHandler
public void onServerConnect(ServerConnectEvent e) { public void onServerConnect(ServerConnectEvent e) {
UserConnection user = Via.getManager().getConnection(e.getPlayer().getUniqueId()); UserConnection user = Via.getManager().getConnection(e.getPlayer().getUniqueId());
if (user == null) return;
if (!user.has(BungeeStorage.class)) { if (!user.has(BungeeStorage.class)) {
user.put(new BungeeStorage(user, e.getPlayer())); user.put(new BungeeStorage(user, e.getPlayer()));
} }