geforkt von Mirrors/Paper
create random seeds for features using SecureRandom
Dieser Commit ist enthalten in:
Ursprung
eaee7a2473
Commit
26c37d99d5
@ -19,7 +19,7 @@ index 7d44abcb4fff9717a1af55879deb7eb9c2d9e7e9..e29b0a90019b12bd6586ad0f7b5314f3
|
||||
}
|
||||
final Object val = config.get(key);
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
index fd7ac4be153538dcee60fade6e7a00f57770e97f..9a3f75288b1d743a7ec4bfd663c1c2988678d3e6 100644
|
||||
index fd7ac4be153538dcee60fade6e7a00f57770e97f..beab9b5701a32a34bcb739920ff3c0106ede7530 100644
|
||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
@@ -927,6 +927,55 @@ public class PaperWorldConfig {
|
||||
@ -43,7 +43,7 @@ index fd7ac4be153538dcee60fade6e7a00f57770e97f..9a3f75288b1d743a7ec4bfd663c1c298
|
||||
+
|
||||
+ if (randomise) {
|
||||
+ final Map<String, Object> randomisedSeeds = new HashMap<>();
|
||||
+ final java.util.Random random = new java.util.Random();
|
||||
+ final java.util.Random random = new java.security.SecureRandom();
|
||||
+ for (final net.minecraft.resources.ResourceLocation resourceLocation : registry.keySet()) {
|
||||
+ if (featureSeeds.containsKey(resourceLocation)) {
|
||||
+ continue;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren