Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
Removed references to the deprecated BlockTypeMask class from UnderOverlayMask.
Dieser Commit ist enthalten in:
Ursprung
6beba674cb
Commit
ae6e59e8d0
@ -25,6 +25,7 @@ import com.sk89q.worldedit.EditSession;
|
|||||||
import com.sk89q.worldedit.LocalPlayer;
|
import com.sk89q.worldedit.LocalPlayer;
|
||||||
import com.sk89q.worldedit.LocalSession;
|
import com.sk89q.worldedit.LocalSession;
|
||||||
import com.sk89q.worldedit.Vector;
|
import com.sk89q.worldedit.Vector;
|
||||||
|
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -32,7 +33,7 @@ import com.sk89q.worldedit.Vector;
|
|||||||
*/
|
*/
|
||||||
public class UnderOverlayMask implements Mask {
|
public class UnderOverlayMask implements Mask {
|
||||||
private final int yMod;
|
private final int yMod;
|
||||||
private Mask mask; // TODO: Make this final and remove the deprecated classes
|
private Mask mask;
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public UnderOverlayMask(Set<Integer> ids, boolean overlay) {
|
public UnderOverlayMask(Set<Integer> ids, boolean overlay) {
|
||||||
@ -46,13 +47,17 @@ public class UnderOverlayMask implements Mask {
|
|||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void addAll(Set<Integer> ids) {
|
public void addAll(Set<Integer> ids) {
|
||||||
if (mask instanceof BlockTypeMask) {
|
if (mask instanceof BlockMask) {
|
||||||
BlockTypeMask blockTypeMask = (BlockTypeMask) mask;
|
final BlockMask blockTypeMask = (BlockMask) mask;
|
||||||
for (Integer id : ids) {
|
for (Integer id : ids) {
|
||||||
blockTypeMask.add(id);
|
blockTypeMask.add(new BaseBlock(id));
|
||||||
}
|
}
|
||||||
} else if (mask instanceof ExistingBlockMask) {
|
} else if (mask instanceof ExistingBlockMask) {
|
||||||
mask = new BlockTypeMask(ids);
|
final BlockMask blockMask = new BlockMask();
|
||||||
|
for (int type : ids) {
|
||||||
|
blockMask.add(new BaseBlock(type));
|
||||||
|
}
|
||||||
|
mask = blockMask;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren