more Reika mods compat (fixes #26)

This commit is contained in:
FalsePattern committed 2022-07-23 21:39:29 +02:00
1 parent 4233905892
commit 973a178fad
7 files changed
+121 -5

No files matched your search

@@ -7,7 +7,7 @@ import net.minecraft.world.chunk.Chunk;
import java.util.function.IntFunction;
import static com.falsepattern.endlessids.EndlessIDs.BIOME_ARRAY_PLACEHOLDER;
import static com.falsepattern.endlessids.EndlessIDs.ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER;
public class BiomePatchHelper {
public static byte[] getBiomeArrayTweaked(Chunk chunk, IntFunction<BiomeGenBase> biomesForGeneration) {
@@ -16,7 +16,7 @@ public class BiomePatchHelper {
for (int i = 0; i < chunkBiomes.length; ++i) {
chunkBiomes[i] = (short) biomesForGeneration.apply(i).biomeID;
}
return BIOME_ARRAY_PLACEHOLDER;
return ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER;
}
public static byte[] getBiomeArrayTweaked(Chunk chunk, BiomeGenBase[] biomesForGeneration) {
@@ -25,6 +25,6 @@ public class BiomePatchHelper {
for (int i = 0; i < chunkBiomes.length; ++i) {
chunkBiomes[i] = (short) biomesForGeneration[i].biomeID;
}
return BIOME_ARRAY_PLACEHOLDER;
return ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER;
}
}