mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Fixed BlockMask, MaskIntersection not using this.
This commit is contained in:
parent
37c388baef
commit
fb16897b5c
@ -50,7 +50,7 @@ public class BlockMask extends AbstractExtentMask {
|
||||
public BlockMask(Extent extent, Collection<BaseBlock> blocks) {
|
||||
super(extent);
|
||||
checkNotNull(blocks);
|
||||
blocks.addAll(blocks);
|
||||
this.blocks.addAll(blocks);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -70,7 +70,7 @@ public BlockMask(Extent extent, BaseBlock... block) {
|
||||
*/
|
||||
public void add(Collection<BaseBlock> blocks) {
|
||||
checkNotNull(blocks);
|
||||
blocks.addAll(blocks);
|
||||
this.blocks.addAll(blocks);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +44,7 @@ public class MaskIntersection extends AbstractMask {
|
||||
*/
|
||||
public MaskIntersection(Collection<Mask> masks) {
|
||||
checkNotNull(masks);
|
||||
masks.addAll(masks);
|
||||
this.masks.addAll(masks);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,7 +63,7 @@ public MaskIntersection(Mask... mask) {
|
||||
*/
|
||||
public void add(Collection<Mask> masks) {
|
||||
checkNotNull(masks);
|
||||
masks.addAll(masks);
|
||||
this.masks.addAll(masks);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user