mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fixes
This commit is contained in:
parent
c60a772e84
commit
ec39d7146c
@ -42,6 +42,9 @@ public class IrisEngineCompound implements EngineCompound {
|
||||
@Getter
|
||||
private final IrisDimension rootDimension;
|
||||
|
||||
@Getter
|
||||
private int threadCount;
|
||||
|
||||
public IrisEngineCompound(World world, IrisDimension rootDimension, IrisDataManager data, int maximumThreads)
|
||||
{
|
||||
this.rootDimension = rootDimension;
|
||||
|
@ -7,7 +7,6 @@ import com.volmit.iris.manager.IrisDataManager;
|
||||
import com.volmit.iris.object.IrisBiome;
|
||||
import com.volmit.iris.object.IrisDimension;
|
||||
import com.volmit.iris.scaffold.hunk.Hunk;
|
||||
import com.volmit.iris.util.Form;
|
||||
import com.volmit.iris.util.KList;
|
||||
import com.volmit.iris.util.M;
|
||||
import org.bukkit.Bukkit;
|
||||
@ -137,18 +136,17 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
@Override
|
||||
public ChunkData generateChunkData(@NotNull World world, @NotNull Random ignored, int x, int z, @NotNull BiomeGrid biome) {
|
||||
TerrainChunk tc = TerrainChunk.create(world, biome);
|
||||
generateChunkRawData(world, ignored, x, z, tc);
|
||||
generateChunkRawData(world, x, z, tc);
|
||||
return tc.getRaw();
|
||||
}
|
||||
|
||||
public void generateChunkRawData(World world, Random ignored, int x, int z, TerrainChunk tc)
|
||||
public void generateChunkRawData(World world, int x, int z, TerrainChunk tc)
|
||||
{
|
||||
initialize(world);
|
||||
Hunk<BlockData> blocks = Hunk.view((ChunkData) tc);
|
||||
Hunk<Biome> biomes = Hunk.view((BiomeGrid) tc);
|
||||
long m = M.ms();
|
||||
compound.generate(x * 16, z * 16, blocks, biomes);
|
||||
System.out.println("Generated " + x + "," + z + " in " + Form.duration(M.ms() - m, 0));
|
||||
generated++;
|
||||
}
|
||||
|
||||
@ -251,16 +249,9 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
return getEngineAccess(y).getHeight(x, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IrisBiome getAbsoluteBiome(int x, int y, int z) {
|
||||
// TODO: REMOVE GET BIOME OR THIS ONE
|
||||
return getEngineAccess(y).getBiome(x, y-getComposite().getEngineForHeight(y).getMinHeight(), z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getThreadCount() {
|
||||
// TODO: NOT CORRECT
|
||||
return Iris.getThreadCount();
|
||||
return getComposite().getThreadCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -89,4 +89,6 @@ public interface EngineCompound extends Listener
|
||||
}
|
||||
|
||||
public boolean isFailing();
|
||||
|
||||
public int getThreadCount();
|
||||
}
|
||||
|
@ -30,8 +30,6 @@ public interface IrisAccess extends Hotloadable, DataProvider {
|
||||
|
||||
public int getHeight(int x, int y, int z);
|
||||
|
||||
public IrisBiome getAbsoluteBiome(int x, int y, int z);
|
||||
|
||||
public int getThreadCount();
|
||||
|
||||
public void changeThreadCount(int m);
|
||||
|
Loading…
x
Reference in New Issue
Block a user