mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-14 21:13:54 +00:00
Made some masks use Extents rather than EditSessions.
This commit is contained in:
@ -23,9 +23,9 @@ import com.sk89q.worldedit.EditSession;
|
||||
import com.sk89q.worldedit.Vector;
|
||||
import com.sk89q.worldedit.blocks.BlockID;
|
||||
|
||||
public class ExistingBlockMask extends AbstractMask {
|
||||
public class ExistingBlockMask extends ExtentAwareMask {
|
||||
@Override
|
||||
public boolean matches(EditSession editSession, Vector pos) {
|
||||
return editSession.getBlockType(pos) != BlockID.AIR;
|
||||
return getExtent(editSession).getBlockType(pos) != BlockID.AIR;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user