Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
trim get where chunk SET is remembered from a previous session
Dieser Commit ist enthalten in:
Ursprung
346762d93b
Commit
1f02287caa
@ -389,6 +389,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
public IChunkGet get(ChunkHolder chunk) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.chunkExisting;
|
||||
}
|
||||
|
||||
@ -446,6 +447,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
public BiomeType getBiome(ChunkHolder chunk, int x, int y, int z) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getBiomeType(x, y, z);
|
||||
}
|
||||
|
||||
@ -453,6 +455,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
public BlockState getBlock(ChunkHolder chunk, int x, int y, int z) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getBlock(x, y, z);
|
||||
}
|
||||
|
||||
@ -461,6 +464,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
int z) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getFullBlock(x, y, z);
|
||||
}
|
||||
|
||||
@ -477,6 +481,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
}
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getSkyLight(x, y, z);
|
||||
}
|
||||
|
||||
@ -493,6 +498,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
}
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getEmmittedLight(x, y, z);
|
||||
}
|
||||
|
||||
@ -500,6 +506,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
public int getBrightness(ChunkHolder chunk, int x, int y, int z) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getBrightness(x, y, z);
|
||||
}
|
||||
|
||||
@ -507,12 +514,14 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
public int getOpacity(ChunkHolder chunk, int x, int y, int z) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getOpacity(x, y, z);
|
||||
}
|
||||
|
||||
@Override public int[] getHeightMap(ChunkHolder chunk, HeightMapType type) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.chunkExisting.trim(false);
|
||||
return chunk.getHeightMap(type);
|
||||
}
|
||||
};
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren