Skip to content

Commit 20aa729

Browse files
authored
Improve #existing mask performance (#3171)
1 parent aee75c1 commit 20aa729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/ExistingBlockMask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public boolean test(BlockVector3 vector) {
4646

4747
@Override
4848
public boolean test(Extent extent, BlockVector3 vector) {
49-
return !extent.getBlock(vector).getBlockType().getMaterial().isAir();
49+
return !vector.getBlock(extent).getBlockType().getMaterial().isAir();
5050
}
5151

5252
@Nullable

0 commit comments

Comments
 (0)