Skip to content

Commit 65376f3

Browse files
authored
Merge pull request #11 from Minecraft-Java-Edition-Speedrunning/server-issue-fix
server issues won't have any impact on the client resetting
2 parents 328714e + f7f324d commit 65376f3

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/main/java/me/voidxwalker/serversiderng/RNGSession.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,7 @@ public static Optional<Supplier<Long>> getRngContext(RNGHandler.RNGTypes type) {
8888
*/
8989
public static void startRNGSession() {
9090
if (rngSessionCompletableFuture != null) {
91-
try {
92-
instance = rngSessionCompletableFuture.get();
93-
} catch (InterruptedException | ExecutionException e) {
94-
ServerSideRNG.log(Level.WARN,"Failed to start RNGSession async!");
95-
instance = null;
96-
}
91+
instance = rngSessionCompletableFuture.getNow(null);
9792
}
9893
else {
9994
instance = createRNGSessionOrNull();

0 commit comments

Comments
 (0)