mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +00:00
Updated setBlockState usage - needs verifying as flags are confusing
This commit is contained in:
1 parent
0adca3c227
commit
c95df25d30
1 file changed
+2
-2
+2
-2
@@ -116,10 +116,10 @@ public class NMSChunkGeneratorDelegate extends ChunkGenerator {
|
|||||||
if(noise > threshold) {
|
if(noise > threshold) {
|
||||||
chunk.setBlockState(new BlockPos(x, y, z), ((CraftBlockData) ((BukkitBlockState) delegate
|
chunk.setBlockState(new BlockPos(x, y, z), ((CraftBlockData) ((BukkitBlockState) delegate
|
||||||
.getPalette(x + xi, y, z + zi, world, biomeProvider)
|
.getPalette(x + xi, y, z + zi, world, biomeProvider)
|
||||||
.get(depth, x + xi, y, z + zi, world.getSeed())).getHandle()).getState(), false);
|
.get(depth, x + xi, y, z + zi, world.getSeed())).getHandle()).getState(), 0);
|
||||||
depth++;
|
depth++;
|
||||||
} else if(noise < airThreshold) {
|
} else if(noise < airThreshold) {
|
||||||
chunk.setBlockState(new BlockPos(x, y, z), Blocks.AIR.defaultBlockState(), false);
|
chunk.setBlockState(new BlockPos(x, y, z), Blocks.AIR.defaultBlockState(), 0);
|
||||||
} else {
|
} else {
|
||||||
depth = 0;
|
depth = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user