Updated to Minecraft version 1.4

This commit is contained in:
Dinnerbone
2011-03-31 21:40:00 +01:00
parent 0635f7c1b8
commit 87c36febeb
84 changed files with 1024 additions and 793 deletions

View File

@@ -66,7 +66,7 @@ public class CraftWorld implements World {
}
public Location getSpawnLocation() {
ChunkCoordinates spawn = world.l();
ChunkCoordinates spawn = world.m();
return new Location(this, spawn.a, spawn.b, spawn.c);
}
@@ -80,7 +80,7 @@ public class CraftWorld implements World {
}
public Chunk getChunkAt(int x, int z) {
return this.provider.d(x,z).bukkitChunk;
return this.provider.c(x, z).bukkitChunk;
}
public Chunk getChunkAt(Block block) {
@@ -124,7 +124,7 @@ public class CraftWorld implements World {
return false;
}
provider.c(x, z);
provider.d(x, z);
return true;
}
@@ -214,7 +214,7 @@ public class CraftWorld implements World {
public boolean loadChunk(int x, int z, boolean generate) {
if (generate) {
// Use the default variant of loadChunk when generate == true.
return provider.d(x, z) != null;
return provider.c(x, z) != null;
}
provider.a.remove(x, z);
@@ -524,7 +524,7 @@ public class CraftWorld implements World {
public void save() {
// Writes level.dat
world.r();
world.t();
// Saves all chunks/regions
world.o.a(true, null);