mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
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:
parent
eb9759f2d8
commit
d71f5452ad
@ -19,6 +19,7 @@
|
||||
package me.totalfreedom.totalfreedommod.world;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Random;
|
||||
import java.util.SplittableRandom;
|
||||
import java.util.logging.Logger;
|
||||
import org.bukkit.Location;
|
||||
@ -128,7 +129,7 @@ public class CleanroomChunkGenerator extends ChunkGenerator
|
||||
}
|
||||
|
||||
@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();
|
||||
if (materials.length > maxHeight)
|
||||
@ -150,7 +151,7 @@ public class CleanroomChunkGenerator extends ChunkGenerator
|
||||
}
|
||||
|
||||
@Override
|
||||
public Location getFixedSpawnLocation(World world, @NotNull SplittableRandom random)
|
||||
public Location getFixedSpawnLocation(World world, @NotNull Random random)
|
||||
{
|
||||
if (!world.isChunkLoaded(0, 0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user