mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-06 04:46:40 +00:00
Various minor
Disable P2's we region restrictions (so that it uses FAWE's) Fix extent binding Fix filtering on null sections
This commit is contained in:
@ -652,7 +652,7 @@ public interface Extent extends InputExtent, OutputExtent {
|
||||
return this;
|
||||
}
|
||||
|
||||
default <T extends Filter> T apply(Region region, T filter) {
|
||||
default <T extends Filter> T apply(Region region, T filter, boolean full) {
|
||||
return apply((Iterable<BlockVector3>) region, filter);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.sk89q.worldedit.extent;
|
||||
|
||||
import com.boydti.fawe.beta.Filter;
|
||||
import com.boydti.fawe.beta.IBatchProcessor;
|
||||
import com.boydti.fawe.object.changeset.FaweChangeSet;
|
||||
import com.sk89q.jnbt.CompoundTag;
|
||||
@ -250,4 +251,14 @@ public class PassthroughExtent extends AbstractDelegateExtent {
|
||||
public boolean isWorld() {
|
||||
return getExtent().isWorld();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends Filter> T apply(Region region, T filter, boolean full) {
|
||||
return getExtent().apply(region, filter, full);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends Filter> T apply(Iterable<BlockVector3> positions, T filter) {
|
||||
return getExtent().apply(positions, filter);
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ public interface Clipboard extends Extent, Iterable<BlockVector3>, Closeable {
|
||||
// }
|
||||
|
||||
@Override
|
||||
default <T extends Filter> T apply(Region region, T filter) {
|
||||
default <T extends Filter> T apply(Region region, T filter, boolean full) {
|
||||
if (region.equals(getRegion())) {
|
||||
return apply(this, filter);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user