Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Fix needless complication of section position methods in CharBlocks children
Dieser Commit ist enthalten in:
Ursprung
ce7a97368f
Commit
daa418a287
Binäre Datei nicht angezeigt.
@ -157,6 +157,21 @@ public abstract class CharBlocks implements IBlocks {
|
|||||||
return sections[layer].isFull() ? blocks[layer] : null;
|
return sections[layer].isFull() ? blocks[layer] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getSectionCount() {
|
||||||
|
return sectionCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMaxSectionPosition() {
|
||||||
|
return maxSectionPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMinSectionPosition() {
|
||||||
|
return minSectionPosition;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockState getBlock(int x, int y, int z) {
|
public BlockState getBlock(int x, int y, int z) {
|
||||||
return BlockTypesCache.states[get(x, y, z)];
|
return BlockTypesCache.states[get(x, y, z)];
|
||||||
|
@ -55,9 +55,4 @@ public abstract class CharGetBlocks extends CharBlocks implements IChunkGet {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getSectionCount() {
|
|
||||||
return sectionCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -321,21 +321,6 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
|||||||
return super.load(layer);
|
return super.load(layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getSectionCount() {
|
|
||||||
return sectionCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getMaxSectionPosition() {
|
|
||||||
return maxSectionPosition;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getMinSectionPosition() {
|
|
||||||
return minSectionPosition;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Checks and updates the various section arrays against the new layer index
|
// Checks and updates the various section arrays against the new layer index
|
||||||
private void updateSectionIndexRange(int layer) {
|
private void updateSectionIndexRange(int layer) {
|
||||||
if (layer >= minSectionPosition && layer <= maxSectionPosition) {
|
if (layer >= minSectionPosition && layer <= maxSectionPosition) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren