forked from xjboss/KCauldronX
1403
This commit is contained in:
parent
66f77f8314
commit
73bd06891b
@ -46,7 +46,7 @@ ext.mcVersion = "1.7.10"
|
||||
ext.cauldronVersion = "2"
|
||||
ext.forgeVersion = "1403"
|
||||
ext.bukkitVersion = "1"
|
||||
version = "${mcVersion}-${cauldronVersion}.${forgeVersion}.${bukkitVersion}.47"
|
||||
version = "${mcVersion}-${cauldronVersion}.${forgeVersion}.${bukkitVersion}.49"
|
||||
|
||||
jenkins {
|
||||
job = 'Cauldron'
|
||||
|
@ -85,7 +85,8 @@ public class CraftWorld implements World {
|
||||
}
|
||||
|
||||
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) {
|
||||
@ -121,7 +122,8 @@ public class CraftWorld implements World {
|
||||
}
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user