Skip to content

Commit

Permalink
Format patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Oct 16, 2024
1 parent 8c98659 commit 9df5b5f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions patches/server/0075-Faster-Random-Generator.patch
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ index c6efe6faf68c7a7b1df344e2e527aa7e44bfacb8..fe89e7b7c4267ee2969d1505f83cba1a
public static enum Algorithm {
diff --git a/src/main/java/org/dreeam/leaf/config/modules/opt/FastRNG.java b/src/main/java/org/dreeam/leaf/config/modules/opt/FastRNG.java
new file mode 100644
index 0000000000000000000000000000000000000000..dff4d1955d37529403ba08e41c12774e30741b28
index 0000000000000000000000000000000000000000..4e980c7a90cb6f9ccd43ec1498dea90940208afd
--- /dev/null
+++ b/src/main/java/org/dreeam/leaf/config/modules/opt/FastRNG.java
@@ -0,0 +1,41 @@
@@ -0,0 +1,40 @@
+package org.dreeam.leaf.config.modules.opt;
+
+import org.dreeam.leaf.config.ConfigModules;
Expand All @@ -93,8 +93,7 @@ index 0000000000000000000000000000000000000000..dff4d1955d37529403ba08e41c12774e
+ config.addComment(getBasePath(), """
+ Use faster random generator? (Up to 100X faster)
+ Requires a JVM that supports RandomGenerator and the LXM generators.
+ Some JREs don't support this and will cause a crash.
+ """);
+ Some JREs don't support this and will cause a crash.""");
+
+ enabled = config.getBoolean(getBasePath() + ".enabled", enabled);
+ warnForSlimeChunk = config.getBoolean(getBasePath() + ".warn-for-slime-chunk", warnForSlimeChunk,
Expand Down

0 comments on commit 9df5b5f

Please sign in to comment.