Updated for API changes.

This commit is contained in:
Me4502 2016-10-30 15:22:10 +10:00 committed by wizjany
parent 89767aedf4
commit 93735c3268
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ apply plugin: 'net.minecrell.vanilla.server.library'
dependencies {
compile project(':worldedit-core')
compile 'org.spongepowered:spongeapi:5.0.0-SNAPSHOT'
compile 'org.spongepowered:spongeapi:5.1.0-SNAPSHOT'
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
}
@ -36,7 +36,7 @@ sponge {
minecraft {
version = "1.10.2"
mappings = 'snapshot_20160628'
mappings = "snapshot_20161029"
runDir = 'run'
}

View File

@ -177,7 +177,7 @@ public abstract class SpongeWorld extends AbstractWorld {
@Override
public BaseBiome getBiome(Vector2D position) {
checkNotNull(position);
return new BaseBiome(IDHelper.resolve(getWorld().getBiome(position.getBlockX(), position.getBlockZ())));
return new BaseBiome(IDHelper.resolve(getWorld().getBiome(position.getBlockX(), 0, position.getBlockZ())));
}
@Override
@ -185,7 +185,7 @@ public abstract class SpongeWorld extends AbstractWorld {
checkNotNull(position);
checkNotNull(biome);
getWorld().setBiome(position.getBlockX(), position.getBlockZ(), IDHelper.resolveBiome(biome.getId()));
getWorld().setBiome(position.getBlockX(), 0, position.getBlockZ(), IDHelper.resolveBiome(biome.getId()));
return true;
}