Changed instance of SplittableRandom back to Random

Overridable methods required Random instead of SplittableRandom and caused a build failure in the previous commit. This should fix the build failure.
This commit is contained in:
Paldiu 2020-12-26 10:30:30 -05:00
parent eb9759f2d8
commit d71f5452ad

View File

@ -19,6 +19,7 @@
package me.totalfreedom.totalfreedommod.world; package me.totalfreedom.totalfreedommod.world;
import java.util.Arrays; import java.util.Arrays;
import java.util.Random;
import java.util.SplittableRandom; import java.util.SplittableRandom;
import java.util.logging.Logger; import java.util.logging.Logger;
import org.bukkit.Location; import org.bukkit.Location;
@ -128,7 +129,7 @@ public class CleanroomChunkGenerator extends ChunkGenerator
} }
@Override @Override
public @NotNull ChunkData generateChunkData(World world, @NotNull SplittableRandom random, int x, int z, @NotNull BiomeGrid biome) public @NotNull ChunkData generateChunkData(World world, @NotNull Random random, int x, int z, @NotNull BiomeGrid biome)
{ {
int maxHeight = world.getMaxHeight(); int maxHeight = world.getMaxHeight();
if (materials.length > maxHeight) if (materials.length > maxHeight)
@ -150,7 +151,7 @@ public class CleanroomChunkGenerator extends ChunkGenerator
} }
@Override @Override
public Location getFixedSpawnLocation(World world, @NotNull SplittableRandom random) public Location getFixedSpawnLocation(World world, @NotNull Random random)
{ {
if (!world.isChunkLoaded(0, 0)) if (!world.isChunkLoaded(0, 0))
{ {