Skip to content

Commit a39930c

Browse files
committed
Merge branch 'internship' of https://github.com/Coflnet/SkyblockModFabric into internship
2 parents 20561ed + 11f39a8 commit a39930c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/client/java/com/coflnet/CoflModClient.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,17 @@ public void onInitializeClient() {
161161
username = MinecraftClient.getInstance().getSession().getUsername();
162162
if (!CoflCore.Wrapper.isRunning && CoflCore.config.autoStart)
163163
CoflSkyCommand.start(username);
164+
Thread.startVirtualThread(() -> {
165+
try {
166+
Thread.sleep(5000); // wait 5 seconds for the scoreboard to be populated
167+
if(!CoflCore.Wrapper.isRunning)
168+
return;
169+
uploadScoreboard();
170+
uploadTabList();
171+
} catch (InterruptedException e) {
172+
e.printStackTrace();
173+
}
174+
});
164175
}
165176
uploadedScoreboard = false;
166177
});

0 commit comments

Comments
 (0)