Correct equality check for adding post processor

This commit is contained in:
dordsor21 2021-09-16 17:49:16 +01:00
parent 4182d7473c
commit 1dd0dac462
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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);