Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-07 20:10:06 +01:00
Ursprung
6676d77aaa
Commit
e4709eb6dc
@ -57,7 +57,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
|||||||
if (biomes == null) {
|
if (biomes == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3];
|
return biomes[(y >> 2) << 4 | (z >> 2) << 2 | x >> 2];
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -90,7 +90,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
|||||||
if (biomes == null) {
|
if (biomes == null) {
|
||||||
biomes = new BiomeType[1024];
|
biomes = new BiomeType[1024];
|
||||||
}
|
}
|
||||||
biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3] = biome;
|
biomes[(y >> 2) << 4 | (z >> 2) << 2 | x >> 2] = biome;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@ public class MCAChunk implements IChunk {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BiomeType getBiomeType(int x, int y, int z) {
|
public BiomeType getBiomeType(int x, int y, int z) {
|
||||||
return this.biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3];
|
return this.biomes[(y >> 2) << 4 | (z >> 2) << 2 | x >> 2];
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -505,7 +505,7 @@ public class MCAChunk implements IChunk {
|
|||||||
@Override
|
@Override
|
||||||
public boolean setBiome(int x, int y, int z, BiomeType biome) {
|
public boolean setBiome(int x, int y, int z, BiomeType biome) {
|
||||||
setModified();
|
setModified();
|
||||||
biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3] = biome;
|
biomes[(y >> 2) << 4 | (z >> 2) << 2 | x >> 2] = biome;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren