Small Chunk loaded workaround, mabye
This commit is contained in:
parent
5fb285d0db
commit
bd83e5b7cd
1 changed files with 8 additions and 4 deletions
|
@ -26,10 +26,14 @@ public class CacheChunkAction implements Action {
|
||||||
return;
|
return;
|
||||||
Set<Block> knownBlocks = new HashSet<Block>();
|
Set<Block> knownBlocks = new HashSet<Block>();
|
||||||
try {
|
try {
|
||||||
for (BlockState state : q.findAllIn(getBlocks())) {
|
if (chunk.isLoaded()) {
|
||||||
Block b = state.getLocation().getBlock();
|
for (BlockState state : q.findAllIn(getBlocks())) {
|
||||||
knownBlocks.add(b);
|
if (chunk.isLoaded()) {
|
||||||
link.setSimpleMetaState(b, state);
|
Block b = state.getLocation().getBlock();
|
||||||
|
knownBlocks.add(b);
|
||||||
|
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++) {
|
||||||
|
|
Loading…
Reference in a new issue