mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
parent
be44e1449c
commit
ff7c972ea6
@ -57,7 +57,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
||||
if (biomes == null) {
|
||||
return null;
|
||||
}
|
||||
return biomes[y << 2 | z & 12 | x >> 2];
|
||||
return biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3];
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -90,7 +90,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
||||
if (biomes == null) {
|
||||
biomes = new BiomeType[1024];
|
||||
}
|
||||
biomes[y << 2 | z & 12 | x >> 2] = biome;
|
||||
biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3] = biome;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -481,7 +481,7 @@ public class MCAChunk implements IChunk {
|
||||
|
||||
@Override
|
||||
public BiomeType getBiomeType(int x, int y, int z) {
|
||||
return this.biomes[y << 2 | z & 12 | x >> 2];
|
||||
return this.biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3];
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -505,7 +505,7 @@ public class MCAChunk implements IChunk {
|
||||
@Override
|
||||
public boolean setBiome(int x, int y, int z, BiomeType biome) {
|
||||
setModified();
|
||||
biomes[y << 2 | z & 12 | x >> 2] = biome;
|
||||
biomes[(y >> 2) << 4 | (z & 3) << 2 | x & 3] = biome;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user