9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 10:39:07 +00:00
This commit is contained in:
DanMB
2022-09-13 23:06:52 -04:00
parent 3aa3c13477
commit a66d60eaea
2 changed files with 16 additions and 1 deletions

View File

@@ -299,7 +299,7 @@ public class BukkitChunkGenerator extends ChunkGenerator implements PlatformChun
} else {
ChunkDataHunkHolder blocks = new ChunkDataHunkHolder(tc);
BiomeGridHunkHolder biomes = new BiomeGridHunkHolder(tc, tc.getMinHeight(), tc.getMaxHeight());
getEngine().generate(x << 4, z << 4, blocks, biomes, false);
getEngine().generate(x << 4, z << 4, blocks, biomes, true);
blocks.apply();
biomes.apply();
}

View File

@@ -1,5 +1,6 @@
package com.volmit.iris.engine.platform;
import com.volmit.iris.Iris;
import com.volmit.iris.util.collection.KList;
import org.bukkit.block.Biome;
import org.bukkit.generator.BiomeProvider;
@@ -14,6 +15,20 @@ public class DummyBiomeProvider extends BiomeProvider {
@NotNull
@Override
public Biome getBiome(@NotNull WorldInfo worldInfo, int x, int y, int z) {
if(x == 10000 && z == 10000) {
try
{
Iris.error("Im biome provider, who am i?");
Iris.error(getClass().getCanonicalName());
throw new RuntimeException("WHATS GOING ON");
}
catch(Throwable e)
{
e.printStackTrace();
}
}
return Biome.PLAINS;
}