Rollback rtp change to fix stack overflow error

This commit is contained in:
William committed 2022-08-20 22:16:40 +01:00
1 parent 18673f3936
commit ad59a5b2a0
3 files changed
+4 -11

No files matched your search

@@ -120,8 +120,7 @@ public abstract class RtpEngine {
populateCache(keyedWorld.get(), cacheSize);
}
}
return generateRandomPosition(world.spawn != null ? world.spawn : new Location(0, 0, 0, world))
.join();
return generateRandomPosition(new Location(0, 0, 0, 0f, 0f, world)).join();
}).orTimeout(5, TimeUnit.SECONDS).exceptionally(throwable -> Optional.empty());
}