Small Chunk loaded workaround, mabye

This commit is contained in:
Jascha Starke 2013-09-29 22:29:37 +02:00
parent 5fb285d0db
commit bd83e5b7cd

View file

@ -26,11 +26,15 @@ public class CacheChunkAction implements Action {
return; return;
Set<Block> knownBlocks = new HashSet<Block>(); Set<Block> knownBlocks = new HashSet<Block>();
try { try {
if (chunk.isLoaded()) {
for (BlockState state : q.findAllIn(getBlocks())) { for (BlockState state : q.findAllIn(getBlocks())) {
if (chunk.isLoaded()) {
Block b = state.getLocation().getBlock(); Block b = state.getLocation().getBlock();
knownBlocks.add(b); knownBlocks.add(b);
link.setSimpleMetaState(b, state); link.setSimpleMetaState(b, state);
} }
}
}
/*int h = chunk.getWorld().getMaxHeight(); /*int h = chunk.getWorld().getMaxHeight();
for (int y = 0; y < h; y++) { for (int y = 0; y < h; y++) {
for (int x = 0; x < CHUNK_SIZE; x++) { for (int x = 0; x < CHUNK_SIZE; x++) {