SPIGOT-7044: Modified RandomSourceWrapper to ensure random is not null before setting seed
This commit is contained in:
parent
4b60bfd18d
commit
3b34c6beae
@ -72,7 +72,9 @@ public final class RandomSourceWrapper implements RandomSource {
|
||||
|
||||
@Override
|
||||
public void setSeed(long l) {
|
||||
random.setSeed(l);
|
||||
if (random != null) {
|
||||
random.setSeed(l);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user