Skip to content

Commit d802193

Browse files
author
games647
authored
Merge pull request TuxCoding#606 from Smart123s/fg-nostorage-fix
Don't crash if no storage is loaded
2 parents 47ee2cf + 586b357 commit d802193

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/src/main/java/com/github/games647/fastlogin/core/shared/FloodgateManagement.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public void run() {
7373

7474
// check if the Bedrock player is linked to a Java account
7575
isLinked = floodgatePlayer.getLinkedPlayer() != null;
76+
77+
//this happens on Bukkit if it's connected to Bungee
78+
//if that's the case, players will be logged in via plugin messages
79+
if (core.getStorage() == null) {
80+
return;
81+
}
82+
7683
profile = core.getStorage().loadProfile(username);
7784
AuthPlugin<P> authPlugin = core.getAuthPluginHook();
7885

0 commit comments

Comments
 (0)