SPIGOT-7044: Modified RandomSourceWrapper to ensure random is not null before setting seed

This commit is contained in:
Vatuu 2022-06-09 21:06:03 +10:00 committed by md_5
parent 4b60bfd18d
commit 3b34c6beae
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -72,8 +72,10 @@ public final class RandomSourceWrapper implements RandomSource {
@Override
public void setSeed(long l) {
if (random != null) {
random.setSeed(l);
}
}
@Override
public int nextInt() {