1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Fixed bug in Bungee platform

This commit is contained in:
Tim203
2024-05-19 00:10:17 +02:00
parent f1c52b48fc
commit 792af7b0dd

View File

@@ -131,6 +131,9 @@ public final class BungeeListener implements Listener {
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.LOWEST)
public void onPostLogin(PostLoginEvent event) { public void onPostLogin(PostLoginEvent event) {
FloodgatePlayer player = api.getPlayer(event.getPlayer().getUniqueId()); FloodgatePlayer player = api.getPlayer(event.getPlayer().getUniqueId());
if (player == null) {
return;
}
// Skin look up (on Spigot and friends) would result in it failing, so apply a default skin // Skin look up (on Spigot and friends) would result in it failing, so apply a default skin
if (!player.isLinked()) { if (!player.isLinked()) {