removed attempt at caching biome data
parent
4ca181b435
commit
419435561b
|
@ -31,9 +31,6 @@ public class Fragment {
|
|||
|
||||
private static int[] dataCache = new int[SIZE*SIZE];
|
||||
|
||||
// TODO: This shouldn't be hard coded!
|
||||
//public int[] biomeDataCache = new int[SIZE*SIZE];
|
||||
|
||||
public Fragment(Layer... layers) {
|
||||
this(layers, null, null);
|
||||
}
|
||||
|
|
|
@ -88,7 +88,6 @@ public class BiomeLayer extends Layer {
|
|||
int x = fragment.getChunkX() << 2;
|
||||
int y = fragment.getChunkY() << 2;
|
||||
|
||||
// TODO : Change this when ChunkManager is removed!
|
||||
int[] biomeData = MinecraftUtil.getBiomeData(x, y, size, size);
|
||||
dataCache = Util.arrayToColors(biomeData, dataCache, biomeColors, size*size);
|
||||
fragment.setImageData(layerID, dataCache);
|
||||
|
|
Loading…
Reference in New Issue