mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Correct equality check for adding post processor
This commit is contained in:
parent
4182d7473c
commit
1dd0dac462
@ -863,7 +863,7 @@ public interface Extent extends InputExtent, OutputExtent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default Extent addPostProcessor(IBatchProcessor processor) {
|
default Extent addPostProcessor(IBatchProcessor processor) {
|
||||||
if (processor.getScope() == ProcessorScope.READING_SET_BLOCKS) {
|
if (processor.getScope() != ProcessorScope.READING_SET_BLOCKS) {
|
||||||
throw new IllegalArgumentException("You cannot alter blocks in a PostProcessor");
|
throw new IllegalArgumentException("You cannot alter blocks in a PostProcessor");
|
||||||
}
|
}
|
||||||
return processor.construct(this);
|
return processor.construct(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user