From 0ef8b4ad1416234979c4e387d4a7d2db7ce4b064 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 20 Feb 2019 11:55:39 +0000 Subject: [PATCH] Update to WorldEdit's *breaking* Biome handling changes --- .../plotsquared/plot/listener/ProcessedWEExtent.java | 4 ++-- .../intellectualsites/plotsquared/plot/listener/WEExtent.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/ProcessedWEExtent.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/ProcessedWEExtent.java index 431c2c378..d7ebf1c86 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/ProcessedWEExtent.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/ProcessedWEExtent.java @@ -13,7 +13,7 @@ import com.sk89q.worldedit.extent.NullExtent; import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.util.Location; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; @@ -171,7 +171,7 @@ public class ProcessedWEExtent extends AbstractDelegateExtent { return null; } - @Override public boolean setBiome(BlockVector2 position, BaseBiome biome) { + @Override public boolean setBiome(BlockVector2 position, BiomeType biome) { return WEManager.maskContains(this.mask, position.getX(), position.getZ()) && super .setBiome(position, biome); } diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WEExtent.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WEExtent.java index ac0503886..073819fa3 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WEExtent.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/listener/WEExtent.java @@ -9,7 +9,7 @@ import com.sk89q.worldedit.extent.Extent; import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.util.Location; -import com.sk89q.worldedit.world.biome.BaseBiome; +import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BlockState; import com.sk89q.worldedit.world.block.BlockStateHolder; @@ -42,7 +42,7 @@ public class WEExtent extends AbstractDelegateExtent { return null; } - @Override public boolean setBiome(BlockVector2 position, BaseBiome biome) { + @Override public boolean setBiome(BlockVector2 position, BiomeType biome) { return WEManager.maskContains(this.mask, position.getX(), position.getZ()) && super .setBiome(position, biome); }