mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Don't error when adding processors to NullExtent, simply do nothing (#1654)
This commit is contained in:
parent
d8c0f8e3b1
commit
5a97b23347
@ -219,6 +219,16 @@ public class NullExtent extends FaweRegionExtent implements IBatchProcessor {
|
||||
throw reason;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Extent addProcessor(final IBatchProcessor processor) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Extent addPostProcessor(final IBatchProcessor processor) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockArrayClipboard lazyCopy(Region region) {
|
||||
throw reason;
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
package com.sk89q.worldedit.extent;
|
||||
|
||||
import com.fastasyncworldedit.core.queue.IBatchProcessor;
|
||||
import com.sk89q.jnbt.CompoundTag;
|
||||
import com.sk89q.worldedit.WorldEditException;
|
||||
import com.sk89q.worldedit.entity.BaseEntity;
|
||||
@ -118,6 +119,16 @@ public class NullExtent implements Extent {
|
||||
throws WorldEditException {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Extent addProcessor(final IBatchProcessor processor) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Extent addPostProcessor(final IBatchProcessor processor) {
|
||||
return this;
|
||||
}
|
||||
//FAWE end
|
||||
|
||||
@Nullable
|
||||
|
Loading…
Reference in New Issue
Block a user