geforkt von Mirrors/Paper
SPIGOT-7044: Modified RandomSourceWrapper to ensure random is not null before setting seed
By: Vatuu <21113232+Vatuu@users.noreply.github.com>
Dieser Commit ist enthalten in:
Ursprung
d345226478
Commit
92822affe1
@ -72,8 +72,10 @@ public final class RandomSourceWrapper implements RandomSource {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setSeed(long l) {
|
public void setSeed(long l) {
|
||||||
|
if (random != null) {
|
||||||
random.setSeed(l);
|
random.setSeed(l);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int nextInt() {
|
public int nextInt() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren