mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-7044: Modified RandomSourceWrapper to ensure random is not null before setting seed
This commit is contained in:
parent
4b60bfd18d
commit
3b34c6beae
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue