From d71f5452ad113212e71686f67e81feffe04f9456 Mon Sep 17 00:00:00 2001 From: Paldiu Date: Sat, 26 Dec 2020 10:30:30 -0500 Subject: [PATCH] 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. --- .../totalfreedommod/world/CleanroomChunkGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/world/CleanroomChunkGenerator.java b/src/main/java/me/totalfreedom/totalfreedommod/world/CleanroomChunkGenerator.java index dc88905c..d60a2e71 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/world/CleanroomChunkGenerator.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/world/CleanroomChunkGenerator.java @@ -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)) {