Permalink
Browse files

Update for Sponge API 5.x changes

  • Loading branch information...
DarkArc committed Apr 9, 2017
1 parent 36b50dc commit 867ec601cdbd857d3b57a68f9b0142fc680fb7a2
@@ -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.+'
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
}
@@ -182,15 +182,15 @@ public int getBlockLightLevel(Vector position) {
@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
public boolean setBiome(Vector2D position, BaseBiome biome) {
checkNotNull(position);
checkNotNull(biome);
getWorld().setBiome(position.getBlockX(), position.getBlockZ(), IDHelper.resolveBiome(biome.getId()));
getWorld().setBiome(position.getBlockX(), position.getBlockZ(), 0, IDHelper.resolveBiome(biome.getId()));
return true;
}

0 comments on commit 867ec60

Please sign in to comment.