Update CraftBukkit to Minecraft 1.3.1
This commit is contained in:
committed by
Travis Watkins
parent
08e2923bd4
commit
a43d621c01
@@ -63,7 +63,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
if (xbtypes != null) {
|
||||
chunk = new Chunk(this.world, x, z);
|
||||
|
||||
ChunkSection[] csect = chunk.h();
|
||||
ChunkSection[] csect = chunk.i();
|
||||
int scnt = Math.min(csect.length, xbtypes.length);
|
||||
|
||||
// Loop through returned sections
|
||||
@@ -100,7 +100,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
if (btypes != null) {
|
||||
chunk = new Chunk(this.world, x, z);
|
||||
|
||||
ChunkSection[] csect = chunk.h();
|
||||
ChunkSection[] csect = chunk.i();
|
||||
int scnt = Math.min(csect.length, btypes.length);
|
||||
|
||||
for (int sec = 0; sec < scnt; sec++) {
|
||||
@@ -118,7 +118,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
|
||||
chunk = new Chunk(this.world, x, z); // Create empty chunk
|
||||
|
||||
ChunkSection[] csect = chunk.h();
|
||||
ChunkSection[] csect = chunk.i();
|
||||
|
||||
scnt = Math.min(scnt, csect.length);
|
||||
// Loop through sections
|
||||
@@ -153,7 +153,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
}
|
||||
}
|
||||
// Set biome grid
|
||||
byte[] biomeIndex = chunk.l();
|
||||
byte[] biomeIndex = chunk.m();
|
||||
for (int i = 0; i < biomeIndex.length; i++) {
|
||||
biomeIndex[i] = (byte) (biomegrid.biome[i].id & 0xFF);
|
||||
}
|
||||
@@ -215,4 +215,12 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
public ChunkPosition findNearestMapFeature(World world, String type, int x, int y, int z) {
|
||||
return "Stronghold".equals(type) && this.strongholdGen != null ? this.strongholdGen.getNearestGeneratedFeature(world, x, y, z) : null;
|
||||
}
|
||||
|
||||
public int getLoadedChunks() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return "CustomChunkGenerator";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,4 +68,12 @@ public class NormalChunkGenerator extends InternalChunkGenerator {
|
||||
public ChunkPosition findNearestMapFeature(World world, String string, int i, int i1, int i2) {
|
||||
return provider.findNearestMapFeature(world, string, i, i1, i2);
|
||||
}
|
||||
|
||||
public int getLoadedChunks() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return "NormalWorldGenerator";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user