Skip to content

Commit a431a24

Browse files
wizjanydordsor21
authored andcommitted
Add setBiome override in MaskingExtent.
This makes biome operations respect masks set on an EditSession.
1 parent 198485a commit a431a24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

worldedit-core/src/main/java/com/sk89q/worldedit/extent/MaskingExtent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ public <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 location, B
110110
return this.mask.test(location) && super.setBlock(location, block);
111111
}
112112

113+
@Override
114+
public boolean setBiome(BlockVector3 location, BiomeType biome) {
115+
return mask.test(location) && super.setBiome(location, biome);
116+
}
117+
113118
@Override
114119
public boolean setBiome(int x, int y, int z, BiomeType biome) {
115120
return this.mask.test(BlockVector3.at(x, y, z)) && super.setBiome(x, y, z, biome);

0 commit comments

Comments
 (0)