1
0
forked from xjboss/KCauldronX
This commit is contained in:
Prototik 2015-05-13 17:33:49 +07:00
parent 66f77f8314
commit 73bd06891b
2 changed files with 5 additions and 3 deletions

View File

@ -46,7 +46,7 @@ ext.mcVersion = "1.7.10"
ext.cauldronVersion = "2" ext.cauldronVersion = "2"
ext.forgeVersion = "1403" ext.forgeVersion = "1403"
ext.bukkitVersion = "1" ext.bukkitVersion = "1"
version = "${mcVersion}-${cauldronVersion}.${forgeVersion}.${bukkitVersion}.47" version = "${mcVersion}-${cauldronVersion}.${forgeVersion}.${bukkitVersion}.49"
jenkins { jenkins {
job = 'Cauldron' job = 'Cauldron'

View File

@ -85,7 +85,8 @@ public class CraftWorld implements World {
} }
public Block getBlockAt(int x, int y, int z) { public Block getBlockAt(int x, int y, int z) {
return getChunkAt(x >> 4, z >> 4).getBlock(x & 0xF, y & 0xFF, z & 0xF); Chunk chunk = getChunkAt(x >> 4, z >> 4);
return chunk == null ? null : chunk.getBlock(x & 0xF, y & 0xFF, z & 0xF);
} }
public int getBlockTypeIdAt(int x, int y, int z) { public int getBlockTypeIdAt(int x, int y, int z) {
@ -121,7 +122,8 @@ public class CraftWorld implements World {
} }
public Chunk getChunkAt(int x, int z) { public Chunk getChunkAt(int x, int z) {
return this.world.theChunkProviderServer.loadChunk(x, z).bukkitChunk; net.minecraft.world.chunk.Chunk chunk = this.world.theChunkProviderServer.loadChunk(x, z);
return chunk == null ? null : chunk.bukkitChunk;
} }
public Chunk getChunkAt(Block block) { public Chunk getChunkAt(Block block) {