mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-7044: Modified RandomSourceWrapper to ensure random is not null before setting seed
By: Vatuu <21113232+Vatuu@users.noreply.github.com>
This commit is contained in:
parent
d345226478
commit
92822affe1
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue