Skip to content

Commit

Permalink
Merge pull request #11 from Minecraft-Java-Edition-Speedrunning/serve…
Browse files Browse the repository at this point in the history
…r-issue-fix

server issues won't have any impact on the client resetting
  • Loading branch information
VoidXWalker authored Feb 8, 2023
2 parents 328714e + f7f324d commit 65376f3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/me/voidxwalker/serversiderng/RNGSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,7 @@ public static Optional<Supplier<Long>> getRngContext(RNGHandler.RNGTypes type) {
*/
public static void startRNGSession() {
if (rngSessionCompletableFuture != null) {
try {
instance = rngSessionCompletableFuture.get();
} catch (InterruptedException | ExecutionException e) {
ServerSideRNG.log(Level.WARN,"Failed to start RNGSession async!");
instance = null;
}
instance = rngSessionCompletableFuture.getNow(null);
}
else {
instance = createRNGSessionOrNull();
Expand Down

0 comments on commit 65376f3

Please sign in to comment.