From 93735c3268af49576ede7dfc1ca63a2be78c93e3 Mon Sep 17 00:00:00 2001 From: Me4502 Date: Sun, 30 Oct 2016 15:22:10 +1000 Subject: [PATCH] Updated for API changes. --- worldedit-sponge/build.gradle | 4 ++-- .../src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/worldedit-sponge/build.gradle b/worldedit-sponge/build.gradle index d2c2db64d..f3da02272 100644 --- a/worldedit-sponge/build.gradle +++ b/worldedit-sponge/build.gradle @@ -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' } diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java index a617cb08f..71146fefc 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java @@ -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; }