diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/function/generator/ForestGenerator.java b/worldedit-core/src/main/java/com/sk89q/worldedit/function/generator/ForestGenerator.java index 2c4bfadca..a042fd16c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/function/generator/ForestGenerator.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/function/generator/ForestGenerator.java @@ -60,7 +60,7 @@ public class ForestGenerator implements RegionFunction { // we trick editsession history here in the first call editSession.setBlock(position, BlockTypes.AIR.getDefaultState()); // and then trick the generator here by directly setting into the world - editSession.getWorld().setBlock(position, BlockTypes.AIR.getDefaultState()); + editSession.setBlock(position, BlockTypes.AIR.getDefaultState()); // so that now the generator can generate the tree boolean success = treeType.generate(editSession, position); if (!success) { diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java index 2bea6ca97..9f2ef87b0 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/ArbitraryBiomeShape.java @@ -135,7 +135,7 @@ public abstract class ArbitraryBiomeShape { if (!hollow) { final BiomeType material = getBiome(x, y, z, baseBiome); if (material != null) { - editSession.getWorld().setBiome(position, material); + editSession.setBiome(position, material); ++affected; } @@ -151,7 +151,7 @@ public abstract class ArbitraryBiomeShape { continue; } - editSession.getWorld().setBiome(position, material); + editSession.setBiome(position, material); ++affected; }