Allow extent to be used down the pipeline in BlockReplace

- It's quite likely for this to be required given BlockReplace use in replacenear
 - Fixes #1390
This commit is contained in:
dordsor21 2021-11-02 20:53:14 +00:00
parent a716dd3778
commit d91a971e85
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -50,7 +50,9 @@ public class BlockReplace implements RegionFunction {
@Override
public boolean apply(BlockVector3 position) throws WorldEditException {
return extent.setBlock(position, pattern.applyBlock(position));
//FAWE start - allow extent to be used down the pipeline
return pattern.apply(extent, position, position);
//FAWE end
}
}