removed attempt at caching biome data

master
Skiphs 2013-08-17 19:42:17 -07:00
parent 4ca181b435
commit 419435561b
2 changed files with 0 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);