Skip to content

Commit 2c515e6

Browse files
Smart123sgames647
authored andcommitted
Invert an if statement
1 parent 9b2bdac commit 2c515e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ public void run() {
8181
}
8282

8383
profile = core.getAuthStorage().loadProfile(username);
84-
if (!profile.isSaved()) {
85-
// linked players are stored as Java (= not Floodgate) players
86-
profile.setFloodgate(!isLinked);
87-
} else {
84+
if (profile.isSaved()) {
8885
if (!profile.isFloodgateMigrated()) {
8986
if (isLinked) {
9087
profile.setFloodgate(false);
@@ -106,6 +103,9 @@ public void run() {
106103
username);
107104
return;
108105
}
106+
} else {
107+
// linked players are stored as Java (= not Floodgate) players
108+
profile.setFloodgate(!isLinked);
109109
}
110110

111111
AuthPlugin<P> authPlugin = core.getAuthPluginHook();

0 commit comments

Comments
 (0)